#include "util/saturate_cast.h"
#include "gtest/gtest.h"
namespace openscreen {
namespace {
TEST(SaturateCastTest, LargerToSmallerSignedInteger) { … }
TEST(SaturateCastTest, LargerToSmallerUnsignedInteger) { … }
TEST(SaturateCastTest, LargerSignedToSmallerUnsignedInteger) { … }
TEST(SaturateCastTest, LargerUnsignedToSmallerSignedInteger) { … }
TEST(SaturateCastTest, SignedToUnsigned32BitInteger) { … }
TEST(SaturateCastTest, UnsignedToSigned32BitInteger) { … }
TEST(SaturateCastTest, SignedToUnsigned64BitInteger) { … }
TEST(SaturateCastTest, UnsignedToSigned64BitInteger) { … }
TEST(SaturateCastTest, Float32ToSigned32) { … }
TEST(SaturateCastTest, Float32ToSigned64) { … }
TEST(SaturateCastTest, Float64ToSigned32) { … }
TEST(SaturateCastTest, Float64ToSigned64) { … }
TEST(SaturateCastTest, Float32ToUnsigned64) { … }
TEST(SaturateCastTest, RoundingFloat32ToSigned64) { … }
}
}