Lines Matching +full:10 +full:m
54 Matcher<const Tuple2&> m = Eq(); in TEST() local
55 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
56 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
61 Matcher<const Tuple2&> m = Eq(); in TEST() local
62 EXPECT_EQ("are an equal pair", Describe(m)); in TEST()
68 Matcher<const Tuple2&> m = Ge(); in TEST() local
69 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
70 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
71 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
76 Matcher<const Tuple2&> m = Ge(); in TEST() local
77 EXPECT_EQ("are a pair where the first >= the second", Describe(m)); in TEST()
83 Matcher<const Tuple2&> m = Gt(); in TEST() local
84 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
85 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST()
86 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
91 Matcher<const Tuple2&> m = Gt(); in TEST() local
92 EXPECT_EQ("are a pair where the first > the second", Describe(m)); in TEST()
98 Matcher<const Tuple2&> m = Le(); in TEST() local
99 EXPECT_TRUE(m.Matches(Tuple2(5L, 6))); in TEST()
100 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
101 EXPECT_FALSE(m.Matches(Tuple2(5L, 4))); in TEST()
106 Matcher<const Tuple2&> m = Le(); in TEST() local
107 EXPECT_EQ("are a pair where the first <= the second", Describe(m)); in TEST()
113 Matcher<const Tuple2&> m = Lt(); in TEST() local
114 EXPECT_TRUE(m.Matches(Tuple2(5L, 6))); in TEST()
115 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST()
116 EXPECT_FALSE(m.Matches(Tuple2(5L, 4))); in TEST()
121 Matcher<const Tuple2&> m = Lt(); in TEST() local
122 EXPECT_EQ("are a pair where the first < the second", Describe(m)); in TEST()
128 Matcher<const Tuple2&> m = Ne(); in TEST() local
129 EXPECT_TRUE(m.Matches(Tuple2(5L, 6))); in TEST()
130 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
131 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST()
136 Matcher<const Tuple2&> m = Ne(); in TEST() local
137 EXPECT_EQ("are an unequal pair", Describe(m)); in TEST()
155 Matcher<float> m = IsNan(); in TEST() local
156 EXPECT_TRUE(m.Matches(quiet_nan)); in TEST()
157 EXPECT_TRUE(m.Matches(other_nan)); in TEST()
158 EXPECT_FALSE(m.Matches(real_value)); in TEST()
177 Matcher<double> m = IsNan(); in TEST() local
178 EXPECT_TRUE(m.Matches(quiet_nan)); in TEST()
179 EXPECT_TRUE(m.Matches(other_nan)); in TEST()
180 EXPECT_FALSE(m.Matches(real_value)); in TEST()
199 Matcher<long double> m = IsNan(); in TEST() local
200 EXPECT_TRUE(m.Matches(quiet_nan)); in TEST()
201 EXPECT_TRUE(m.Matches(other_nan)); in TEST()
202 EXPECT_FALSE(m.Matches(real_value)); in TEST()
261 Matcher<const Tpl&> m = FloatEq(); in TEST() local
262 EXPECT_TRUE(m.Matches(Tpl(1.0f, 1.0f))); in TEST()
263 EXPECT_TRUE(m.Matches(Tpl(0.3f, 0.1f + 0.1f + 0.1f))); in TEST()
264 EXPECT_FALSE(m.Matches(Tpl(1.1f, 1.0f))); in TEST()
269 Matcher<const ::std::tuple<float, float>&> m = FloatEq(); in TEST() local
270 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
277 Matcher<const Tpl&> m = NanSensitiveFloatEq(); in TEST() local
278 EXPECT_TRUE(m.Matches(Tpl(1.0f, 1.0f))); in TEST()
279 EXPECT_TRUE(m.Matches(Tpl(std::numeric_limits<float>::quiet_NaN(), in TEST()
281 EXPECT_FALSE(m.Matches(Tpl(1.1f, 1.0f))); in TEST()
282 EXPECT_FALSE(m.Matches(Tpl(1.0f, std::numeric_limits<float>::quiet_NaN()))); in TEST()
283 EXPECT_FALSE(m.Matches(Tpl(std::numeric_limits<float>::quiet_NaN(), 1.0f))); in TEST()
288 Matcher<const ::std::tuple<float, float>&> m = NanSensitiveFloatEq(); in TEST() local
289 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
296 Matcher<const Tpl&> m = DoubleEq(); in TEST() local
297 EXPECT_TRUE(m.Matches(Tpl(1.0, 1.0))); in TEST()
298 EXPECT_TRUE(m.Matches(Tpl(0.3, 0.1 + 0.1 + 0.1))); in TEST()
299 EXPECT_FALSE(m.Matches(Tpl(1.1, 1.0))); in TEST()
304 Matcher<const ::std::tuple<double, double>&> m = DoubleEq(); in TEST() local
305 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
312 Matcher<const Tpl&> m = NanSensitiveDoubleEq(); in TEST() local
313 EXPECT_TRUE(m.Matches(Tpl(1.0f, 1.0f))); in TEST()
314 EXPECT_TRUE(m.Matches(Tpl(std::numeric_limits<double>::quiet_NaN(), in TEST()
316 EXPECT_FALSE(m.Matches(Tpl(1.1f, 1.0f))); in TEST()
317 EXPECT_FALSE(m.Matches(Tpl(1.0f, std::numeric_limits<double>::quiet_NaN()))); in TEST()
318 EXPECT_FALSE(m.Matches(Tpl(std::numeric_limits<double>::quiet_NaN(), 1.0f))); in TEST()
323 Matcher<const ::std::tuple<double, double>&> m = NanSensitiveDoubleEq(); in TEST() local
324 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
331 Matcher<const Tpl&> m = FloatNear(0.5f); in TEST() local
332 EXPECT_TRUE(m.Matches(Tpl(1.0f, 1.0f))); in TEST()
333 EXPECT_TRUE(m.Matches(Tpl(1.3f, 1.0f))); in TEST()
334 EXPECT_FALSE(m.Matches(Tpl(1.8f, 1.0f))); in TEST()
339 Matcher<const ::std::tuple<float, float>&> m = FloatNear(0.5f); in TEST() local
340 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
347 Matcher<const Tpl&> m = NanSensitiveFloatNear(0.5f); in TEST() local
348 EXPECT_TRUE(m.Matches(Tpl(1.0f, 1.0f))); in TEST()
349 EXPECT_TRUE(m.Matches(Tpl(1.1f, 1.0f))); in TEST()
350 EXPECT_TRUE(m.Matches(Tpl(std::numeric_limits<float>::quiet_NaN(), in TEST()
352 EXPECT_FALSE(m.Matches(Tpl(1.6f, 1.0f))); in TEST()
353 EXPECT_FALSE(m.Matches(Tpl(1.0f, std::numeric_limits<float>::quiet_NaN()))); in TEST()
354 EXPECT_FALSE(m.Matches(Tpl(std::numeric_limits<float>::quiet_NaN(), 1.0f))); in TEST()
359 Matcher<const ::std::tuple<float, float>&> m = NanSensitiveFloatNear(0.5f); in TEST() local
360 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
367 Matcher<const Tpl&> m = DoubleNear(0.5); in TEST() local
368 EXPECT_TRUE(m.Matches(Tpl(1.0, 1.0))); in TEST()
369 EXPECT_TRUE(m.Matches(Tpl(1.3, 1.0))); in TEST()
370 EXPECT_FALSE(m.Matches(Tpl(1.8, 1.0))); in TEST()
375 Matcher<const ::std::tuple<double, double>&> m = DoubleNear(0.5); in TEST() local
376 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
383 Matcher<const Tpl&> m = NanSensitiveDoubleNear(0.5f); in TEST() local
384 EXPECT_TRUE(m.Matches(Tpl(1.0f, 1.0f))); in TEST()
385 EXPECT_TRUE(m.Matches(Tpl(1.1f, 1.0f))); in TEST()
386 EXPECT_TRUE(m.Matches(Tpl(std::numeric_limits<double>::quiet_NaN(), in TEST()
388 EXPECT_FALSE(m.Matches(Tpl(1.6f, 1.0f))); in TEST()
389 EXPECT_FALSE(m.Matches(Tpl(1.0f, std::numeric_limits<double>::quiet_NaN()))); in TEST()
390 EXPECT_FALSE(m.Matches(Tpl(std::numeric_limits<double>::quiet_NaN(), 1.0f))); in TEST()
395 Matcher<const ::std::tuple<double, double>&> m = NanSensitiveDoubleNear(0.5f); in TEST() local
396 EXPECT_EQ("are an almost-equal pair", Describe(m)); in TEST()
399 // Tests that Not(m) matches any value that doesn't match m.
401 Matcher<int> m; in TEST() local
402 m = Not(Eq(2)); in TEST()
403 EXPECT_TRUE(m.Matches(3)); in TEST()
404 EXPECT_FALSE(m.Matches(2)); in TEST()
407 // Tests that Not(m) describes itself properly.
409 Matcher<int> m = Not(Eq(5)); in TEST() local
410 EXPECT_EQ("isn't equal to 5", Describe(m)); in TEST()
418 Matcher<const int&> m = Not(greater_than_5); in TEST() local
420 Matcher<int&> m3 = Not(m); in TEST()
424 void AllOfMatches(int num, const Matcher<int>& m) { in AllOfMatches() argument
425 SCOPED_TRACE(Describe(m)); in AllOfMatches()
426 EXPECT_TRUE(m.Matches(0)); in AllOfMatches()
428 EXPECT_FALSE(m.Matches(i)); in AllOfMatches()
430 EXPECT_TRUE(m.Matches(num + 1)); in AllOfMatches()
438 Matcher<int> m; in TEST() local
439 m = AllOf(Le(2), Ge(1)); in TEST()
440 EXPECT_TRUE(m.Matches(1)); in TEST()
441 EXPECT_TRUE(m.Matches(2)); in TEST()
442 EXPECT_FALSE(m.Matches(0)); in TEST()
443 EXPECT_FALSE(m.Matches(3)); in TEST()
445 m = AllOf(Gt(0), Ne(1), Ne(2)); in TEST()
446 EXPECT_TRUE(m.Matches(3)); in TEST()
447 EXPECT_FALSE(m.Matches(2)); in TEST()
448 EXPECT_FALSE(m.Matches(1)); in TEST()
449 EXPECT_FALSE(m.Matches(0)); in TEST()
451 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3)); in TEST()
452 EXPECT_TRUE(m.Matches(4)); in TEST()
453 EXPECT_FALSE(m.Matches(3)); in TEST()
454 EXPECT_FALSE(m.Matches(2)); in TEST()
455 EXPECT_FALSE(m.Matches(1)); in TEST()
456 EXPECT_FALSE(m.Matches(0)); in TEST()
458 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7)); in TEST()
459 EXPECT_TRUE(m.Matches(0)); in TEST()
460 EXPECT_TRUE(m.Matches(1)); in TEST()
461 EXPECT_FALSE(m.Matches(3)); in TEST()
477 AllOfMatches(10, AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8), in TEST()
478 Ne(9), Ne(10))); in TEST()
481 Ne(10), Ne(11), Ne(12), Ne(13), Ne(14), Ne(15), Ne(16), Ne(17), in TEST()
491 Matcher<int> m; in TEST() local
492 m = AllOf(Le(2), Ge(1)); in TEST()
493 EXPECT_EQ("(is <= 2) and (is >= 1)", Describe(m)); in TEST()
495 m = AllOf(Gt(0), Ne(1), Ne(2)); in TEST()
498 EXPECT_EQ(expected_descr1, Describe(m)); in TEST()
500 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3)); in TEST()
504 EXPECT_EQ(expected_descr2, Describe(m)); in TEST()
506 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7)); in TEST()
508 "(is >= 0) and (is < 10) and (isn't equal to 3) and (isn't equal to 5) " in TEST()
510 EXPECT_EQ(expected_descr3, Describe(m)); in TEST()
515 Matcher<int> m; in TEST() local
516 m = AllOf(Le(2), Ge(1)); in TEST()
518 EXPECT_EQ(expected_descr4, DescribeNegation(m)); in TEST()
520 m = AllOf(Gt(0), Ne(1), Ne(2)); in TEST()
523 EXPECT_EQ(expected_descr5, DescribeNegation(m)); in TEST()
525 m = AllOf(Gt(0), Ne(1), Ne(2), Ne(3)); in TEST()
528 EXPECT_EQ(expected_descr6, DescribeNegation(m)); in TEST()
530 m = AllOf(Ge(0), Lt(10), Ne(3), Ne(5), Ne(7)); in TEST()
532 "(isn't >= 0) or (isn't < 10) or (is equal to 3) or (is equal to 5) or " in TEST()
534 EXPECT_EQ(expected_desr7, DescribeNegation(m)); in TEST()
536 m = AllOf(Ne(1), Ne(2), Ne(3), Ne(4), Ne(5), Ne(6), Ne(7), Ne(8), Ne(9), in TEST()
537 Ne(10), Ne(11)); in TEST()
538 AllOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); in TEST()
539 EXPECT_THAT(Describe(m), EndsWith("and (isn't equal to 11)")); in TEST()
540 AllOfMatches(11, m); in TEST()
547 Matcher<int> less_than_10 = Lt(10); in TEST()
549 Matcher<const int&> m = AllOf(greater_than_5, less_than_10); in TEST() local
559 Matcher<int> m; in TEST_P() local
564 m = AllOf(GreaterThan(10), Lt(30)); in TEST_P()
565 EXPECT_EQ("which is 15 more than 10", Explain(m, 25)); in TEST_P()
568 m = AllOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
569 EXPECT_EQ("which is 20 more than 10, and which is 10 more than 20", in TEST_P()
570 Explain(m, 30)); in TEST_P()
574 m = AllOf(GreaterThan(10), Lt(30), GreaterThan(20)); in TEST_P()
575 EXPECT_EQ("which is 15 more than 10, and which is 5 more than 20", in TEST_P()
576 Explain(m, 25)); in TEST_P()
579 m = AllOf(GreaterThan(10), GreaterThan(20), GreaterThan(30)); in TEST_P()
581 "which is 30 more than 10, and which is 20 more than 20, " in TEST_P()
582 "and which is 10 more than 30", in TEST_P()
583 Explain(m, 40)); in TEST_P()
587 m = AllOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
588 EXPECT_EQ("which is 5 less than 10", Explain(m, 5)); in TEST_P()
593 m = AllOf(GreaterThan(10), Lt(30)); in TEST_P()
594 EXPECT_EQ("", Explain(m, 40)); in TEST_P()
598 m = AllOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
599 EXPECT_EQ("which is 5 less than 20", Explain(m, 15)); in TEST_P()
603 static void AnyOfMatches(int num, const Matcher<int>& m) { in AnyOfMatches() argument
604 SCOPED_TRACE(Describe(m)); in AnyOfMatches()
605 EXPECT_FALSE(m.Matches(0)); in AnyOfMatches()
607 EXPECT_TRUE(m.Matches(i)); in AnyOfMatches()
609 EXPECT_FALSE(m.Matches(num + 1)); in AnyOfMatches()
612 static void AnyOfStringMatches(int num, const Matcher<std::string>& m) { in AnyOfStringMatches() argument
613 SCOPED_TRACE(Describe(m)); in AnyOfStringMatches()
614 EXPECT_FALSE(m.Matches(std::to_string(0))); in AnyOfStringMatches()
617 EXPECT_TRUE(m.Matches(std::to_string(i))); in AnyOfStringMatches()
619 EXPECT_FALSE(m.Matches(std::to_string(num + 1))); in AnyOfStringMatches()
627 Matcher<int> m; in TEST() local
628 m = AnyOf(Le(1), Ge(3)); in TEST()
629 EXPECT_TRUE(m.Matches(1)); in TEST()
630 EXPECT_TRUE(m.Matches(4)); in TEST()
631 EXPECT_FALSE(m.Matches(2)); in TEST()
633 m = AnyOf(Lt(0), Eq(1), Eq(2)); in TEST()
634 EXPECT_TRUE(m.Matches(-1)); in TEST()
635 EXPECT_TRUE(m.Matches(1)); in TEST()
636 EXPECT_TRUE(m.Matches(2)); in TEST()
637 EXPECT_FALSE(m.Matches(0)); in TEST()
639 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3)); in TEST()
640 EXPECT_TRUE(m.Matches(-1)); in TEST()
641 EXPECT_TRUE(m.Matches(1)); in TEST()
642 EXPECT_TRUE(m.Matches(2)); in TEST()
643 EXPECT_TRUE(m.Matches(3)); in TEST()
644 EXPECT_FALSE(m.Matches(0)); in TEST()
646 m = AnyOf(Le(0), Gt(10), 3, 5, 7); in TEST()
647 EXPECT_TRUE(m.Matches(0)); in TEST()
648 EXPECT_TRUE(m.Matches(11)); in TEST()
649 EXPECT_TRUE(m.Matches(3)); in TEST()
650 EXPECT_FALSE(m.Matches(2)); in TEST()
664 AnyOfMatches(10, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)); in TEST()
671 Matcher<int> m = ::testing::AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); in TEST() local
673 EXPECT_THAT(Describe(m), EndsWith("or (is equal to 11)")); in TEST()
674 AnyOfMatches(11, m); in TEST()
675 AnyOfMatches(50, AnyOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, in TEST()
680 50, AnyOf("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", in TEST()
690 Matcher<std::string> m = Conditional(true, eq_red, ne_red); in TEST() local
691 EXPECT_TRUE(m.Matches("red")); in TEST()
692 EXPECT_FALSE(m.Matches("green")); in TEST()
696 EXPECT_FALSE(m.MatchAndExplain("green", &listener)); in TEST()
704 Matcher<std::string> m = Conditional(false, eq_red, ne_red); in TEST() local
705 EXPECT_FALSE(m.Matches("red")); in TEST()
706 EXPECT_TRUE(m.Matches("green")); in TEST()
710 EXPECT_FALSE(m.MatchAndExplain("red", &listener)); in TEST()
717 Matcher<int> m; in TEST() local
718 m = AnyOf(Le(1), Ge(3)); in TEST()
720 EXPECT_EQ("(is <= 1) or (is >= 3)", Describe(m)); in TEST()
722 m = AnyOf(Lt(0), Eq(1), Eq(2)); in TEST()
723 EXPECT_EQ("(is < 0) or (is equal to 1) or (is equal to 2)", Describe(m)); in TEST()
725 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3)); in TEST()
727 Describe(m)); in TEST()
729 m = AnyOf(Le(0), Gt(10), 3, 5, 7); in TEST()
731 "(is <= 0) or (is > 10) or (is equal to 3) or (is equal to 5) or (is " in TEST()
733 Describe(m)); in TEST()
738 Matcher<int> m; in TEST() local
739 m = AnyOf(Le(1), Ge(3)); in TEST()
740 EXPECT_EQ("(isn't <= 1) and (isn't >= 3)", DescribeNegation(m)); in TEST()
742 m = AnyOf(Lt(0), Eq(1), Eq(2)); in TEST()
744 DescribeNegation(m)); in TEST()
746 m = AnyOf(Lt(0), Eq(1), Eq(2), Eq(3)); in TEST()
750 DescribeNegation(m)); in TEST()
752 m = AnyOf(Le(0), Gt(10), 3, 5, 7); in TEST()
754 "(isn't <= 0) and (isn't > 10) and (isn't equal to 3) and (isn't equal " in TEST()
756 DescribeNegation(m)); in TEST()
763 Matcher<int> less_than_10 = Lt(10); in TEST()
765 Matcher<const int&> m = AnyOf(greater_than_5, less_than_10); in TEST() local
775 Matcher<int> m; in TEST_P() local
780 m = AnyOf(GreaterThan(10), Lt(0)); in TEST_P()
781 EXPECT_EQ("which is 5 less than 10", Explain(m, 5)); in TEST_P()
784 m = AnyOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
785 EXPECT_EQ("which is 5 less than 10, and which is 15 less than 20", in TEST_P()
786 Explain(m, 5)); in TEST_P()
790 m = AnyOf(GreaterThan(10), Gt(20), GreaterThan(30)); in TEST_P()
791 EXPECT_EQ("which is 5 less than 10, and which is 25 less than 30", in TEST_P()
792 Explain(m, 5)); in TEST_P()
795 m = AnyOf(GreaterThan(10), GreaterThan(20), GreaterThan(30)); in TEST_P()
797 "which is 5 less than 10, and which is 15 less than 20, " in TEST_P()
799 Explain(m, 5)); in TEST_P()
803 m = AnyOf(GreaterThan(10), GreaterThan(20)); in TEST_P()
804 EXPECT_EQ("which is 5 more than 10", Explain(m, 15)); in TEST_P()
809 m = AnyOf(GreaterThan(10), Lt(30)); in TEST_P()
810 EXPECT_EQ("", Explain(m, 0)); in TEST_P()
814 m = AnyOf(GreaterThan(30), GreaterThan(20)); in TEST_P()
815 EXPECT_EQ("which is 5 more than 20", Explain(m, 25)); in TEST_P()
849 Matcher<double> m = Truly(IsPositive); in TEST() local
850 EXPECT_TRUE(m.Matches(2.0)); in TEST()
851 EXPECT_FALSE(m.Matches(-1.5)); in TEST()
856 Matcher<int> m = Truly(IsGreaterThan(5)); in TEST() local
857 EXPECT_TRUE(m.Matches(6)); in TEST()
858 EXPECT_FALSE(m.Matches(4)); in TEST()
877 Matcher<int> m = Truly(IsNotZero); in TEST() local
878 EXPECT_TRUE(m.Matches(1)); in TEST()
879 EXPECT_FALSE(m.Matches(0)); in TEST()
884 Matcher<double> m = Truly(IsPositive); in TEST() local
885 EXPECT_EQ("satisfies the given predicate", Describe(m)); in TEST()
891 Matcher<const int&> m = Truly(ReferencesFooAndIsZero); in TEST() local
892 EXPECT_TRUE(m.Matches(foo)); in TEST()
894 EXPECT_FALSE(m.Matches(n)); in TEST()
904 // Tests that Matches(m) is a predicate satisfied by whatever that
905 // matches matcher m.
911 // Tests that Matches(m) works when the matcher takes its argument by
914 int m = 0, n = 0; in TEST() local
916 EXPECT_FALSE(Matches(Ref(m))(n)); in TEST()
932 EXPECT_FALSE(Value(5, Gt(10))); in TEST()
998 ON_CALL(helper, NoArgs).WillByDefault(Return(10)); in TEST()
1002 EXPECT_EQ(10, helper.NoArgs()); in TEST()
1011 EXPECT_EQ(10, helper.NoArgs()); in TEST()
1217 Matcher<float> m = FloatEq(nan1_); in TEST_F() local
1218 EXPECT_FALSE(m.Matches(nan1_)); in TEST_F()
1219 EXPECT_FALSE(m.Matches(nan2_)); in TEST_F()
1220 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1225 Matcher<float> m = NanSensitiveFloatEq(nan1_); in TEST_F() local
1226 EXPECT_TRUE(m.Matches(nan1_)); in TEST_F()
1227 EXPECT_TRUE(m.Matches(nan2_)); in TEST_F()
1228 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1303 Matcher<float> m = FloatNear(ParentType::nan1_, 0.1f); in TEST_F() local
1304 EXPECT_FALSE(m.Matches(nan1_)); in TEST_F()
1305 EXPECT_FALSE(m.Matches(nan2_)); in TEST_F()
1306 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1311 Matcher<float> m = NanSensitiveFloatNear(nan1_, 0.1f); in TEST_F() local
1312 EXPECT_TRUE(m.Matches(nan1_)); in TEST_F()
1313 EXPECT_TRUE(m.Matches(nan2_)); in TEST_F()
1314 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1330 Matcher<double> m = DoubleEq(nan1_); in TEST_F() local
1331 EXPECT_FALSE(m.Matches(nan1_)); in TEST_F()
1332 EXPECT_FALSE(m.Matches(nan2_)); in TEST_F()
1333 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1338 Matcher<double> m = NanSensitiveDoubleEq(nan1_); in TEST_F() local
1339 EXPECT_TRUE(m.Matches(nan1_)); in TEST_F()
1340 EXPECT_TRUE(m.Matches(nan2_)); in TEST_F()
1341 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1404 Explain(DoubleNear(2.1, 1e-10), 2.1 + 1.2e-10); in TEST_F()
1407 EXPECT_TRUE(explanation == "which is 1.2e-10 from 2.1" || // GCC in TEST_F()
1430 Matcher<double> m = DoubleNear(ParentType::nan1_, 0.1); in TEST_F() local
1431 EXPECT_FALSE(m.Matches(nan1_)); in TEST_F()
1432 EXPECT_FALSE(m.Matches(nan2_)); in TEST_F()
1433 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1438 Matcher<double> m = NanSensitiveDoubleNear(nan1_, 0.1); in TEST_F() local
1439 EXPECT_TRUE(m.Matches(nan1_)); in TEST_F()
1440 EXPECT_TRUE(m.Matches(nan2_)); in TEST_F()
1441 EXPECT_FALSE(m.Matches(1.0)); in TEST_F()
1473 MATCHER(M, "") {
1485 testing::AllOf(M(), M(), M(), M(), M(), M(), M(), M(), M(), M())); in TEST()
1495 testing::AnyOf(M(), M(), M(), M(), M(), M(), M(), M(), M(), M())); in TEST()