Lines Matching defs:match

216 // Returns the reason why x matches, or doesn't match, m.
283 const bool match = x % 2 == 0;
291 return match;
463 // Using a polymorphic matcher to match a reference type.
471 // Using a polymorphic matcher to match a value type.
884 // Tests that Eq(v) can be used to match any type that supports
1385 EXPECT_EQ("whose first field does not match, which is 1 less than 0",
1390 EXPECT_EQ("whose second field does not match, which is 2 less than 0",
1393 // If the first field doesn't match but the second does, Pair()
1395 EXPECT_EQ("whose first field does not match, which is 1 less than 0",
1398 // If both fields match, Pair() should explain about them both.
1399 EXPECT_EQ("whose both fields match, where the first field is a value "
1404 // If only the first match has an explanation, only this explanation should
1407 EXPECT_EQ("whose both fields match, where the first field is a value "
1411 // If only the second match has an explanation, only this explanation should
1414 EXPECT_EQ("whose both fields match, where the second field is a value "
1422 // Both fields match.
1426 // 'first' doesnt' match, but 'second' matches.
1430 // 'first' matches, but 'second' doesn't match.
2021 // Tests that Not(m) matches any value that doesn't match m.
2203 // Successful match. Both matchers need to explain. The second
2209 // Successful match. Both matchers need to explain.
2214 // Successful match. All matchers need to explain. The second
2220 // Successful match. All matchers need to explain.
2226 // Failed match. The first matcher, which failed, needs to
2231 // Failed match. The second matcher, which failed, needs to
2237 // Failed match. The second matcher, which failed, needs to
2388 // Failed match. Both matchers need to explain. The second
2394 // Failed match. Both matchers need to explain.
2399 // Failed match. All matchers need to explain. The second
2405 // Failed match. All matchers need to explain.
2411 // Successful match. The first matcher, which succeeded, needs to
2416 // Successful match. The second matcher, which succeeded, needs to
2422 // Successful match. The second matcher, which succeeded, needs to
2630 // doesn't match the matcher.
2871 // but it should still match if the max_abs_error is also infinity.
2919 // NanSensitiveFloatEq will match NaN.
3007 // NanSensitiveFloatNear will match NaN.
3034 // NanSensitiveDoubleEq will match NaN.
3135 // NanSensitiveDoubleNear will match NaN.
3491 // Tests that Field() can explain the match result.
3535 // Tests that Field() does not match the NULL pointer.
3554 // Tests that Field() can describe itself when used to match a pointer.
3700 // Tests that Property() can explain the match result.
3751 // Tests that Property() does not match the NULL pointer.
3772 // Tests that Property() can describe itself when used to match a pointer.
3821 // Tests that ResultOf() can explain the match result.
4149 EXPECT_EQ("whose size 0 doesn't match", Explain(m1, container));
4152 EXPECT_EQ("whose size 0 doesn't match, which is 1 less than 1",
4157 EXPECT_EQ("whose size 2 doesn't match", Explain(m2, container));
4158 EXPECT_EQ("whose size 2 doesn't match", Explain(m3, container));
4231 // Depending on the container, match may be true or false
4416 EXPECT_EQ("which is { 1, 2 } when sorted, whose element #0 doesn't match",
4616 EXPECT_EQ("whose distance between begin() and end() 0 doesn't match",
4623 "whose distance between begin() and end() 0 doesn't match, which is 1 "
4630 EXPECT_EQ("whose distance between begin() and end() 2 doesn't match",
4632 EXPECT_EQ("whose distance between begin() and end() 2 doesn't match",
4841 // slow for many real-world inputs. This test shows that our matcher can match
4904 Eq("where the following matchers don't match any elements:\n"
4917 Eq("where the following elements don't match any matchers:\n"
4931 " the following matchers don't match any elements:\n"
4935 " the following elements don't match any matchers:\n"
4947 // A situation where all elements and matchers have a match
4960 "and the closest match is 2 of 3 matchers with the "
5101 // Verify all match graphs up to some moderate number of edges.
5303 EXPECT_EQ("", ss1.str()); // Successful match.
5312 ss2.str()); // Failed match where both arguments need explanation.
5319 ss3.str()); // Failed match where only one argument needs
5337 EXPECT_EQ("whose element #0 doesn't match", Explain(n, b));
5346 EXPECT_EQ("whose element #0 doesn't match, which is 9 less than 10",
5511 EXPECT_EQ("where the value pair (2, 6) at index #1 don't match, "
5622 EXPECT_EQ("where the following elements don't match any matchers:\n"