70 return os << (x.
value ?
"true" :
"false");
76 template <
typename T1>
93 template <
typename T1>
100 template <
typename T1>
108 <<
" is expected to be positive, but evaluates to "
114 template <
typename T1>
116 const T1&
v1)
const {
135 "The predicate assertion didn't evaluate argument 2 "
140 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
142 FAIL() <<
"The failed predicate assertion didn't abort the test "
272 expected_to_finish_ =
false;
283 expected_to_finish_ =
false;
294 expected_to_finish_ =
false;
305 expected_to_finish_ =
false;
420 expected_to_finish_ =
false;
431 expected_to_finish_ =
false;
442 expected_to_finish_ =
false;
453 expected_to_finish_ =
false;
463 template <
typename T1,
typename T2>
480 template <
typename T1,
typename T2>
488 template <
typename T1,
typename T2>
498 <<
" is expected to be positive, but evaluates to "
504 template <
typename T1,
typename T2>
508 const T2&
v2)
const {
527 "The predicate assertion didn't evaluate argument 2 "
530 "The predicate assertion didn't evaluate argument 3 "
535 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
537 FAIL() <<
"The failed predicate assertion didn't abort the test "
564 TEST_F(EXPECT_PRED2Test, FunctionOnBuiltInTypeSuccess) {
573 TEST_F(EXPECT_PRED2Test, FunctionOnUserTypeSuccess) {
582 TEST_F(EXPECT_PRED2Test, FunctorOnBuiltInTypeSuccess) {
591 TEST_F(EXPECT_PRED2Test, FunctorOnUserTypeSuccess) {
600 TEST_F(EXPECT_PRED2Test, FunctionOnBuiltInTypeFailure) {
611 TEST_F(EXPECT_PRED2Test, FunctionOnUserTypeFailure) {
622 TEST_F(EXPECT_PRED2Test, FunctorOnBuiltInTypeFailure) {
633 TEST_F(EXPECT_PRED2Test, FunctorOnUserTypeFailure) {
644 TEST_F(ASSERT_PRED2Test, FunctionOnBuiltInTypeSuccess) {
653 TEST_F(ASSERT_PRED2Test, FunctionOnUserTypeSuccess) {
662 TEST_F(ASSERT_PRED2Test, FunctorOnBuiltInTypeSuccess) {
671 TEST_F(ASSERT_PRED2Test, FunctorOnUserTypeSuccess) {
680 TEST_F(ASSERT_PRED2Test, FunctionOnBuiltInTypeFailure) {
681 expected_to_finish_ =
false;
692 TEST_F(ASSERT_PRED2Test, FunctionOnUserTypeFailure) {
693 expected_to_finish_ =
false;
704 TEST_F(ASSERT_PRED2Test, FunctorOnBuiltInTypeFailure) {
705 expected_to_finish_ =
false;
716 TEST_F(ASSERT_PRED2Test, FunctorOnUserTypeFailure) {
717 expected_to_finish_ =
false;
728 TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnBuiltInTypeSuccess) {
737 TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnUserTypeSuccess) {
746 TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnBuiltInTypeSuccess) {
755 TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnUserTypeSuccess) {
764 TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnBuiltInTypeFailure) {
775 TEST_F(EXPECT_PRED_FORMAT2Test, FunctionOnUserTypeFailure) {
786 TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnBuiltInTypeFailure) {
797 TEST_F(EXPECT_PRED_FORMAT2Test, FunctorOnUserTypeFailure) {
808 TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnBuiltInTypeSuccess) {
817 TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnUserTypeSuccess) {
826 TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnBuiltInTypeSuccess) {
835 TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnUserTypeSuccess) {
844 TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnBuiltInTypeFailure) {
845 expected_to_finish_ =
false;
856 TEST_F(ASSERT_PRED_FORMAT2Test, FunctionOnUserTypeFailure) {
857 expected_to_finish_ =
false;
868 TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnBuiltInTypeFailure) {
869 expected_to_finish_ =
false;
880 TEST_F(ASSERT_PRED_FORMAT2Test, FunctorOnUserTypeFailure) {
881 expected_to_finish_ =
false;
892 template <
typename T1,
typename T2,
typename T3>
894 return v1 + v2 + v3 > 0;
901 return v1 + v2 + v3 > 0;
904 return v1 + v2 + v3 > 0;
909 template <
typename T1,
typename T2,
typename T3>
913 return v1 + v2 + v3 > 0;
918 template <
typename T1,
typename T2,
typename T3>
929 << e1 <<
" + " << e2 <<
" + " << e3
930 <<
" is expected to be positive, but evaluates to "
931 << v1 + v2 + v3 <<
".";
936 template <
typename T1,
typename T2,
typename T3>
942 const T3&
v3)
const {
961 "The predicate assertion didn't evaluate argument 2 "
964 "The predicate assertion didn't evaluate argument 3 "
967 "The predicate assertion didn't evaluate argument 4 "
972 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
974 FAIL() <<
"The failed predicate assertion didn't abort the test "
1003 TEST_F(EXPECT_PRED3Test, FunctionOnBuiltInTypeSuccess) {
1013 TEST_F(EXPECT_PRED3Test, FunctionOnUserTypeSuccess) {
1023 TEST_F(EXPECT_PRED3Test, FunctorOnBuiltInTypeSuccess) {
1033 TEST_F(EXPECT_PRED3Test, FunctorOnUserTypeSuccess) {
1043 TEST_F(EXPECT_PRED3Test, FunctionOnBuiltInTypeFailure) {
1055 TEST_F(EXPECT_PRED3Test, FunctionOnUserTypeFailure) {
1067 TEST_F(EXPECT_PRED3Test, FunctorOnBuiltInTypeFailure) {
1079 TEST_F(EXPECT_PRED3Test, FunctorOnUserTypeFailure) {
1091 TEST_F(ASSERT_PRED3Test, FunctionOnBuiltInTypeSuccess) {
1101 TEST_F(ASSERT_PRED3Test, FunctionOnUserTypeSuccess) {
1111 TEST_F(ASSERT_PRED3Test, FunctorOnBuiltInTypeSuccess) {
1121 TEST_F(ASSERT_PRED3Test, FunctorOnUserTypeSuccess) {
1131 TEST_F(ASSERT_PRED3Test, FunctionOnBuiltInTypeFailure) {
1132 expected_to_finish_ =
false;
1144 TEST_F(ASSERT_PRED3Test, FunctionOnUserTypeFailure) {
1145 expected_to_finish_ =
false;
1157 TEST_F(ASSERT_PRED3Test, FunctorOnBuiltInTypeFailure) {
1158 expected_to_finish_ =
false;
1170 TEST_F(ASSERT_PRED3Test, FunctorOnUserTypeFailure) {
1171 expected_to_finish_ =
false;
1183 TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnBuiltInTypeSuccess) {
1193 TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnUserTypeSuccess) {
1203 TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnBuiltInTypeSuccess) {
1213 TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnUserTypeSuccess) {
1223 TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnBuiltInTypeFailure) {
1235 TEST_F(EXPECT_PRED_FORMAT3Test, FunctionOnUserTypeFailure) {
1247 TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnBuiltInTypeFailure) {
1259 TEST_F(EXPECT_PRED_FORMAT3Test, FunctorOnUserTypeFailure) {
1271 TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnBuiltInTypeSuccess) {
1281 TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnUserTypeSuccess) {
1291 TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnBuiltInTypeSuccess) {
1301 TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnUserTypeSuccess) {
1311 TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnBuiltInTypeFailure) {
1312 expected_to_finish_ =
false;
1324 TEST_F(ASSERT_PRED_FORMAT3Test, FunctionOnUserTypeFailure) {
1325 expected_to_finish_ =
false;
1337 TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnBuiltInTypeFailure) {
1338 expected_to_finish_ =
false;
1350 TEST_F(ASSERT_PRED_FORMAT3Test, FunctorOnUserTypeFailure) {
1351 expected_to_finish_ =
false;
1363 template <
typename T1,
typename T2,
typename T3,
typename T4>
1365 return v1 + v2 + v3 + v4 > 0;
1372 return v1 + v2 + v3 + v4 > 0;
1375 return v1 + v2 + v3 + v4 > 0;
1380 template <
typename T1,
typename T2,
typename T3,
typename T4>
1385 return v1 + v2 + v3 + v4 > 0;
1390 template <
typename T1,
typename T2,
typename T3,
typename T4>
1403 << e1 <<
" + " << e2 <<
" + " << e3 <<
" + " << e4
1404 <<
" is expected to be positive, but evaluates to "
1405 << v1 + v2 + v3 + v4 <<
".";
1410 template <
typename T1,
typename T2,
typename T3,
typename T4>
1418 const T4&
v4)
const {
1437 "The predicate assertion didn't evaluate argument 2 "
1440 "The predicate assertion didn't evaluate argument 3 "
1443 "The predicate assertion didn't evaluate argument 4 "
1446 "The predicate assertion didn't evaluate argument 5 "
1451 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
1453 FAIL() <<
"The failed predicate assertion didn't abort the test "
1484 TEST_F(EXPECT_PRED4Test, FunctionOnBuiltInTypeSuccess) {
1495 TEST_F(EXPECT_PRED4Test, FunctionOnUserTypeSuccess) {
1506 TEST_F(EXPECT_PRED4Test, FunctorOnBuiltInTypeSuccess) {
1517 TEST_F(EXPECT_PRED4Test, FunctorOnUserTypeSuccess) {
1528 TEST_F(EXPECT_PRED4Test, FunctionOnBuiltInTypeFailure) {
1541 TEST_F(EXPECT_PRED4Test, FunctionOnUserTypeFailure) {
1554 TEST_F(EXPECT_PRED4Test, FunctorOnBuiltInTypeFailure) {
1567 TEST_F(EXPECT_PRED4Test, FunctorOnUserTypeFailure) {
1580 TEST_F(ASSERT_PRED4Test, FunctionOnBuiltInTypeSuccess) {
1591 TEST_F(ASSERT_PRED4Test, FunctionOnUserTypeSuccess) {
1602 TEST_F(ASSERT_PRED4Test, FunctorOnBuiltInTypeSuccess) {
1613 TEST_F(ASSERT_PRED4Test, FunctorOnUserTypeSuccess) {
1624 TEST_F(ASSERT_PRED4Test, FunctionOnBuiltInTypeFailure) {
1625 expected_to_finish_ =
false;
1638 TEST_F(ASSERT_PRED4Test, FunctionOnUserTypeFailure) {
1639 expected_to_finish_ =
false;
1652 TEST_F(ASSERT_PRED4Test, FunctorOnBuiltInTypeFailure) {
1653 expected_to_finish_ =
false;
1666 TEST_F(ASSERT_PRED4Test, FunctorOnUserTypeFailure) {
1667 expected_to_finish_ =
false;
1680 TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnBuiltInTypeSuccess) {
1691 TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnUserTypeSuccess) {
1702 TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnBuiltInTypeSuccess) {
1713 TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnUserTypeSuccess) {
1724 TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnBuiltInTypeFailure) {
1737 TEST_F(EXPECT_PRED_FORMAT4Test, FunctionOnUserTypeFailure) {
1750 TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnBuiltInTypeFailure) {
1763 TEST_F(EXPECT_PRED_FORMAT4Test, FunctorOnUserTypeFailure) {
1776 TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnBuiltInTypeSuccess) {
1787 TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnUserTypeSuccess) {
1798 TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnBuiltInTypeSuccess) {
1809 TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnUserTypeSuccess) {
1820 TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnBuiltInTypeFailure) {
1821 expected_to_finish_ =
false;
1834 TEST_F(ASSERT_PRED_FORMAT4Test, FunctionOnUserTypeFailure) {
1835 expected_to_finish_ =
false;
1848 TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnBuiltInTypeFailure) {
1849 expected_to_finish_ =
false;
1862 TEST_F(ASSERT_PRED_FORMAT4Test, FunctorOnUserTypeFailure) {
1863 expected_to_finish_ =
false;
1876 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1878 return v1 + v2 + v3 + v4 + v5 > 0;
1885 return v1 + v2 + v3 + v4 + v5 > 0;
1888 return v1 + v2 + v3 + v4 + v5 > 0;
1893 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1899 return v1 + v2 + v3 + v4 + v5 > 0;
1904 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1919 << e1 <<
" + " << e2 <<
" + " << e3 <<
" + " << e4 <<
" + " << e5
1920 <<
" is expected to be positive, but evaluates to "
1921 << v1 + v2 + v3 + v4 + v5 <<
".";
1926 template <
typename T1,
typename T2,
typename T3,
typename T4,
typename T5>
1936 const T5&
v5)
const {
1955 "The predicate assertion didn't evaluate argument 2 "
1958 "The predicate assertion didn't evaluate argument 3 "
1961 "The predicate assertion didn't evaluate argument 4 "
1964 "The predicate assertion didn't evaluate argument 5 "
1967 "The predicate assertion didn't evaluate argument 6 "
1972 FAIL() <<
"The predicate assertion unexpactedly aborted the test.";
1974 FAIL() <<
"The failed predicate assertion didn't abort the test "
2007 TEST_F(EXPECT_PRED5Test, FunctionOnBuiltInTypeSuccess) {
2019 TEST_F(EXPECT_PRED5Test, FunctionOnUserTypeSuccess) {
2031 TEST_F(EXPECT_PRED5Test, FunctorOnBuiltInTypeSuccess) {
2043 TEST_F(EXPECT_PRED5Test, FunctorOnUserTypeSuccess) {
2055 TEST_F(EXPECT_PRED5Test, FunctionOnBuiltInTypeFailure) {
2069 TEST_F(EXPECT_PRED5Test, FunctionOnUserTypeFailure) {
2083 TEST_F(EXPECT_PRED5Test, FunctorOnBuiltInTypeFailure) {
2097 TEST_F(EXPECT_PRED5Test, FunctorOnUserTypeFailure) {
2111 TEST_F(ASSERT_PRED5Test, FunctionOnBuiltInTypeSuccess) {
2123 TEST_F(ASSERT_PRED5Test, FunctionOnUserTypeSuccess) {
2135 TEST_F(ASSERT_PRED5Test, FunctorOnBuiltInTypeSuccess) {
2147 TEST_F(ASSERT_PRED5Test, FunctorOnUserTypeSuccess) {
2159 TEST_F(ASSERT_PRED5Test, FunctionOnBuiltInTypeFailure) {
2160 expected_to_finish_ =
false;
2174 TEST_F(ASSERT_PRED5Test, FunctionOnUserTypeFailure) {
2175 expected_to_finish_ =
false;
2189 TEST_F(ASSERT_PRED5Test, FunctorOnBuiltInTypeFailure) {
2190 expected_to_finish_ =
false;
2204 TEST_F(ASSERT_PRED5Test, FunctorOnUserTypeFailure) {
2205 expected_to_finish_ =
false;
2219 TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnBuiltInTypeSuccess) {
2231 TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnUserTypeSuccess) {
2243 TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnBuiltInTypeSuccess) {
2255 TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnUserTypeSuccess) {
2267 TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnBuiltInTypeFailure) {
2281 TEST_F(EXPECT_PRED_FORMAT5Test, FunctionOnUserTypeFailure) {
2295 TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnBuiltInTypeFailure) {
2309 TEST_F(EXPECT_PRED_FORMAT5Test, FunctorOnUserTypeFailure) {
2323 TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnBuiltInTypeSuccess) {
2335 TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnUserTypeSuccess) {
2347 TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnBuiltInTypeSuccess) {
2359 TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnUserTypeSuccess) {
2371 TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnBuiltInTypeFailure) {
2372 expected_to_finish_ =
false;
2386 TEST_F(ASSERT_PRED_FORMAT5Test, FunctionOnUserTypeFailure) {
2387 expected_to_finish_ =
false;
2401 TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnBuiltInTypeFailure) {
2402 expected_to_finish_ =
false;
2416 TEST_F(ASSERT_PRED_FORMAT5Test, FunctorOnUserTypeFailure) {
2417 expected_to_finish_ =
false;