Lines Matching defs:Test
68 << "Result test: Value " << +(actual).ValueUnsafe() << " as " << dst \
74 << "Result test: Value " << +((actual).ValueUnsafe()) << " as " << dst \
125 // Test all the different modulus combinations.
165 // Test all the different modulus combinations.
223 // Test the operator combinations.
298 TEST(SafeNumerics, SignedIntegerMath) {
305 TEST(SafeNumerics, UnsignedIntegerMath) {
312 TEST(SafeNumerics, FloatingPointMath) {
317 // Enumerates the five different conversions types we need to test.
330 // EXPECT_EQ wrappers providing specific detail on test failures.
333 << "Conversion test: " << src << " value " << actual << " to " << dst \
338 static void Test(const char *dst, const char *src, int line) {
383 static void Test(const char *dst, const char *src, int line) {
430 static void Test(const char *dst, const char *src, int line) {
452 static void Test(const char *dst, const char *src, int line) {
495 static void Test(const char *dst, const char *src, int line) {
516 TestNumericConversion<d, s, t>::Test(#d, #s, __LINE__)
518 TEST(SafeNumerics, IntMinOperations) {
536 TEST(SafeNumerics, IntOperations) {
561 TEST(SafeNumerics, IntMaxOperations) {
584 TEST(SafeNumerics, FloatOperations) {
595 TEST(SafeNumerics, DoubleOperations) {
604 TEST(SafeNumerics, SizeTOperations) {
609 TEST(SafeNumerics, CastTests) {
624 // Just test that the casts compile, since the other tests cover logic.
655 // Test various saturation corner cases.
678 TEST(SafeNumerics, SaturatedCastChecks) {
688 TEST(SafeNumerics, IsValueInRangeForNumericType) {
763 TEST(SafeNumerics, CompoundNumericOperations) {