Lines Matching refs:EXPECT_EQ

227   EXPECT_EQ("hi5", listener.str());
230 EXPECT_EQ("", listener.str());
233 EXPECT_EQ("42", listener.str());
244 EXPECT_EQ(&std::cout, StreamMatchResultListener(&std::cout).stream());
303 EXPECT_EQ("value % 2 == 0", Explain(m, 2));
304 EXPECT_EQ("value % 2 == 1", Explain(m, 3));
351 EXPECT_EQ("is an even number",
360 EXPECT_EQ("which is 42 more than 0", listener1.str());
364 EXPECT_EQ("which is 9 less than 0", listener2.str());
469 EXPECT_EQ("g_bar or zero", Describe(m1));
475 EXPECT_EQ("g_bar or zero", Describe(m2));
510 EXPECT_EQ("is even", Describe(m1));
513 EXPECT_EQ("is odd", Describe(not_m1));
515 EXPECT_EQ("% 2 == 0", Explain(m1, 42));
521 EXPECT_EQ("is even", Describe(m2));
524 EXPECT_EQ("is odd", Describe(not_m2));
526 EXPECT_EQ("% 2 == 0", Explain(m2, '\x42'));
808 EXPECT_EQ("is anything", Describe(A<bool>()));
828 EXPECT_EQ("is anything", Describe(An<int>()));
850 EXPECT_EQ("is anything", Describe(m));
881 EXPECT_EQ("is equal to 1-byte object <61>", Describe(m));
909 EXPECT_EQ("is equal to 2", Describe(TypedEq<int>(2)));
943 EXPECT_EQ("is >= 5", Describe(m));
957 EXPECT_EQ("is > 5", Describe(m));
971 EXPECT_EQ("is <= 5", Describe(m));
985 EXPECT_EQ("is < 5", Describe(m));
999 EXPECT_EQ("isn't equal to 5", Describe(m));
1061 EXPECT_EQ("is NULL", Describe(m));
1062 EXPECT_EQ("isn't NULL", DescribeNegation(m));
1109 EXPECT_EQ("isn't NULL", Describe(m));
1128 EXPECT_EQ(string(ss.str()), Describe(m));
1184 EXPECT_EQ("is equal to \"Hi-\'\\\"?\\\\\\a\\b\\f\\n\\r\\t\\v\\xD3\"",
1190 EXPECT_EQ("is equal to \"012\\04500800\"", Describe(m2));
1193 EXPECT_EQ("is equal to \"\\012\\045\\0\\08\\0\\0\"", Describe(m3));
1209 EXPECT_EQ("isn't equal to \"Hi\"", Describe(m));
1251 EXPECT_EQ("is equal to (ignoring case) \"Hi\"", Describe(m));
1268 EXPECT_EQ("isn't equal to (ignoring case) \"Hi\"", Describe(m));
1298 EXPECT_EQ("has substring \"foo\\n\\\"\"", Describe(m));
1303 EXPECT_EQ("has a key that is equal to \"foo\"", Describe(m));
1304 EXPECT_EQ("doesn't have a key that is equal to \"foo\"", DescribeNegation(m));
1309 EXPECT_EQ("whose first field is a value which is 5 less than 10",
1311 EXPECT_EQ("whose first field is a value which is 5 more than 10",
1368 EXPECT_EQ("has a first field that is equal to \"foo\""
1371 EXPECT_EQ("has a first field that isn't equal to \"foo\""
1376 EXPECT_EQ("has a first field that isn't equal to 13"
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",
1395 EXPECT_EQ("whose first field does not match, which is 1 less than 0",
1399 EXPECT_EQ("whose both fields match, where the first field is a value "
1407 EXPECT_EQ("whose both fields match, where the first field is a value "
1414 EXPECT_EQ("whose both fields match, where the second field is a value "
1478 EXPECT_EQ("starts with \"Hi\"", Describe(m));
1499 EXPECT_EQ("ends with \"Hi\"", Describe(m));
1518 EXPECT_EQ("matches regular expression \"Hi.*\"", Describe(m1));
1521 EXPECT_EQ("matches regular expression \"a.*\"", Describe(m2));
1540 EXPECT_EQ("contains regular expression \"Hi.*\"", Describe(m1));
1543 EXPECT_EQ("contains regular expression \"a.*\"", Describe(m2));
1573 EXPECT_EQ("is equal to L\"Hi-\'\\\"?\\\\\\a\\b\\f\\n\\r\\t\\v\"",
1577 EXPECT_EQ("is equal to L\"\\xD3\\x576\\x8D3\\xC74D\"",
1583 EXPECT_EQ("is equal to L\"012\\04500800\"", Describe(m4));
1586 EXPECT_EQ("is equal to L\"\\012\\045\\0\\08\\0\\0\"", Describe(m5));
1602 EXPECT_EQ("isn't equal to L\"Hi\"", Describe(m));
1644 EXPECT_EQ("is equal to (ignoring case) L\"Hi\"", Describe(m));
1661 EXPECT_EQ("isn't equal to (ignoring case) L\"Hi\"", Describe(m));
1691 EXPECT_EQ("has substring L\"foo\\n\\\"\"", Describe(m));
1712 EXPECT_EQ("starts with L\"Hi\"", Describe(m));
1733 EXPECT_EQ("ends with L\"Hi\"", Describe(m));
1764 EXPECT_EQ("is equal to L\"Hi-\'\\\"?\\\\\\a\\b\\f\\n\\r\\t\\v\"",
1768 EXPECT_EQ("is equal to L\"\\xD3\\x576\\x8D3\\xC74D\"",
1774 EXPECT_EQ("is equal to L\"012\\04500800\"", Describe(m4));
1777 EXPECT_EQ("is equal to L\"\\012\\045\\0\\08\\0\\0\"", Describe(m5));
1793 EXPECT_EQ("isn't equal to L\"Hi\"", Describe(m));
1835 EXPECT_EQ("is equal to (ignoring case) L\"Hi\"", Describe(m));
1852 EXPECT_EQ("isn't equal to (ignoring case) L\"Hi\"", Describe(m));
1882 EXPECT_EQ("has substring L\"foo\\n\\\"\"", Describe(m));
1903 EXPECT_EQ("starts with L\"Hi\"", Describe(m));
1924 EXPECT_EQ("ends with L\"Hi\"", Describe(m));
1943 EXPECT_EQ("are an equal pair", Describe(m));
1958 EXPECT_EQ("are a pair where the first >= the second", Describe(m));
1973 EXPECT_EQ("are a pair where the first > the second", Describe(m));
1988 EXPECT_EQ("are a pair where the first <= the second", Describe(m));
2003 EXPECT_EQ("are a pair where the first < the second", Describe(m));
2018 EXPECT_EQ("are an unequal pair", Describe(m));
2032 EXPECT_EQ("isn't equal to 5", Describe(m));
2127 EXPECT_EQ("(is <= 2) and (is >= 1)", Describe(m));
2130 EXPECT_EQ("(is > 0) and "
2137 EXPECT_EQ("((is > 0) and "
2145 EXPECT_EQ("((is >= 0) and "
2157 EXPECT_EQ("(isn't <= 2) or "
2162 EXPECT_EQ("(isn't > 0) or "
2169 EXPECT_EQ("((isn't > 0) or "
2177 EXPECT_EQ("((isn't >= 0) or "
2207 EXPECT_EQ("which is 15 more than 10", Explain(m, 25));
2211 EXPECT_EQ("which is 20 more than 10, and which is 10 more than 20",
2217 EXPECT_EQ("which is 15 more than 10, and which is 5 more than 20",
2222 EXPECT_EQ("which is 30 more than 10, and which is 20 more than 20, "
2229 EXPECT_EQ("which is 5 less than 10", Explain(m, 5));
2235 EXPECT_EQ("", Explain(m, 40));
2240 EXPECT_EQ("which is 5 less than 20", Explain(m, 15));
2318 EXPECT_EQ("(is <= 1) or (is >= 3)",
2322 EXPECT_EQ("(is < 0) or "
2327 EXPECT_EQ("((is < 0) or "
2334 EXPECT_EQ("((is <= 0) or "
2346 EXPECT_EQ("(isn't <= 1) and (isn't >= 3)",
2350 EXPECT_EQ("(isn't < 0) and "
2355 EXPECT_EQ("((isn't < 0) and "
2362 EXPECT_EQ("((isn't <= 0) and "
2392 EXPECT_EQ("which is 5 less than 10", Explain(m, 5));
2396 EXPECT_EQ("which is 5 less than 10, and which is 15 less than 20",
2402 EXPECT_EQ("which is 5 less than 10, and which is 25 less than 30",
2407 EXPECT_EQ("which is 5 less than 10, and which is 15 less than 20, "
2414 EXPECT_EQ("which is 5 more than 10", Explain(m, 15));
2420 EXPECT_EQ("", Explain(m, 0));
2425 EXPECT_EQ("which is 5 more than 20", Explain(m, 25));
2501 EXPECT_EQ("satisfies the given predicate",
2559 EXPECT_EQ("% 2 == 0", listener1.str());
2563 EXPECT_EQ("", listener2.str());
2570 EXPECT_EQ("% 2 == 0", listener1.str());
2575 EXPECT_EQ("", listener2.str());
2616 EXPECT_EQ(1, helper.Helper('\1', 2));
2617 EXPECT_EQ(2, helper.Helper('a', 1));
2730 EXPECT_EQ(sizeof(RawType), sizeof(Bits));
2928 EXPECT_EQ("is approximately 2", Describe(m1));
2929 EXPECT_EQ("isn't approximately 2", DescribeNegation(m1));
2932 EXPECT_EQ("is approximately 0.5", Describe(m2));
2933 EXPECT_EQ("isn't approximately 0.5", DescribeNegation(m2));
2936 EXPECT_EQ("never matches", Describe(m3));
2937 EXPECT_EQ("is anything", DescribeNegation(m3));
2942 EXPECT_EQ("is approximately 2", Describe(m1));
2943 EXPECT_EQ("isn't approximately 2", DescribeNegation(m1));
2946 EXPECT_EQ("is approximately 0.5", Describe(m2));
2947 EXPECT_EQ("isn't approximately 0.5", DescribeNegation(m2));
2950 EXPECT_EQ("is NaN", Describe(m3));
2951 EXPECT_EQ("isn't NaN", DescribeNegation(m3));
2968 EXPECT_EQ("is approximately 2 (absolute error <= 0.5)", Describe(m1));
2969 EXPECT_EQ(
2973 EXPECT_EQ("is approximately 0.5 (absolute error <= 0.5)", Describe(m2));
2974 EXPECT_EQ(
2978 EXPECT_EQ("never matches", Describe(m3));
2979 EXPECT_EQ("is anything", DescribeNegation(m3));
2984 EXPECT_EQ("is approximately 2 (absolute error <= 0.5)", Describe(m1));
2985 EXPECT_EQ(
2989 EXPECT_EQ("is approximately 0.5 (absolute error <= 0.5)", Describe(m2));
2990 EXPECT_EQ(
2994 EXPECT_EQ("is NaN", Describe(m3));
2995 EXPECT_EQ("isn't NaN", DescribeNegation(m3));
3043 EXPECT_EQ("is approximately 2", Describe(m1));
3044 EXPECT_EQ("isn't approximately 2", DescribeNegation(m1));
3047 EXPECT_EQ("is approximately 0.5", Describe(m2));
3048 EXPECT_EQ("isn't approximately 0.5", DescribeNegation(m2));
3051 EXPECT_EQ("never matches", Describe(m3));
3052 EXPECT_EQ("is anything", DescribeNegation(m3));
3057 EXPECT_EQ("is approximately 2", Describe(m1));
3058 EXPECT_EQ("isn't approximately 2", DescribeNegation(m1));
3061 EXPECT_EQ("is approximately 0.5", Describe(m2));
3062 EXPECT_EQ("isn't approximately 0.5", DescribeNegation(m2));
3065 EXPECT_EQ("is NaN", Describe(m3));
3066 EXPECT_EQ("isn't NaN", DescribeNegation(m3));
3083 EXPECT_EQ("is approximately 2 (absolute error <= 0.5)", Describe(m1));
3084 EXPECT_EQ(
3088 EXPECT_EQ("is approximately 0.5 (absolute error <= 0.5)", Describe(m2));
3089 EXPECT_EQ(
3093 EXPECT_EQ("never matches", Describe(m3));
3094 EXPECT_EQ("is anything", DescribeNegation(m3));
3098 EXPECT_EQ("", Explain(DoubleNear(2.0, 0.1), 2.05));
3099 EXPECT_EQ("which is 0.2 from 2", Explain(DoubleNear(2.0, 0.1), 2.2));
3100 EXPECT_EQ("which is -0.3 from 2", Explain(DoubleNear(2.0, 0.1), 1.7));
3112 EXPECT_EQ("is approximately 2 (absolute error <= 0.5)", Describe(m1));
3113 EXPECT_EQ(
3117 EXPECT_EQ("is approximately 0.5 (absolute error <= 0.5)", Describe(m2));
3118 EXPECT_EQ(
3122 EXPECT_EQ("is NaN", Describe(m3));
3123 EXPECT_EQ("isn't NaN", DescribeNegation(m3));
3249 EXPECT_EQ(prefix + "points to a value that is anything", Describe(matcher));
3250 EXPECT_EQ(prefix + "does not point to a value that is anything",
3334 EXPECT_EQ("points to a value that is > 3", Describe(m));
3335 EXPECT_EQ("does not point to a value that is > 3",
3342 EXPECT_EQ("", Explain(m, static_cast<const string*>(NULL)));
3346 EXPECT_EQ("which points to 3" + OfType("long") + ", which is 2 more than 1",
3353 EXPECT_EQ("which points to 42" + OfType("int"), Explain(m, &n));
3487 EXPECT_EQ("is an object whose given field is >= 0", Describe(m));
3488 EXPECT_EQ("is an object whose given field isn't >= 0", DescribeNegation(m));
3497 EXPECT_EQ("whose given field is 1" + OfType("int"), Explain(m, a));
3500 EXPECT_EQ(
3558 EXPECT_EQ("is an object whose given field is >= 0", Describe(m));
3559 EXPECT_EQ("is an object whose given field isn't >= 0", DescribeNegation(m));
3568 EXPECT_EQ("", Explain(m, static_cast<const AStruct*>(NULL)));
3569 EXPECT_EQ("which points to an object whose given field is 1" + OfType("int"),
3573 EXPECT_EQ("which points to an object whose given field is 1" + OfType("int") +
3695 EXPECT_EQ("is an object whose given property is >= 0", Describe(m));
3696 EXPECT_EQ("is an object whose given property isn't >= 0",
3706 EXPECT_EQ("whose given property is 1" + OfType("int"), Explain(m, a));
3709 EXPECT_EQ(
3776 EXPECT_EQ("is an object whose given property is >= 0", Describe(m));
3777 EXPECT_EQ("is an object whose given property isn't >= 0",
3787 EXPECT_EQ("", Explain(m, static_cast<const AClass*>(NULL)));
3788 EXPECT_EQ(
3793 EXPECT_EQ("which points to an object whose given property is 1" +
3815 EXPECT_EQ("is mapped by the given callable to a value that "
3817 EXPECT_EQ("is mapped by the given callable to a value that "
3826 EXPECT_EQ("which is mapped by the given callable to 90" + OfType("int"),
3830 EXPECT_EQ("which is mapped by the given callable to 90" + OfType("int") +
3998 EXPECT_EQ("which is 1 modulo 4", Explain(m, 5));
4005 EXPECT_EQ("which is 2 modulo 4", Explain(m, 6));
4012 EXPECT_EQ("which is 2 modulo 3", Explain(m, 5));
4019 EXPECT_EQ("which is 0 modulo 2, and which is 0 modulo 3", Explain(m, 6));
4024 EXPECT_EQ("", Explain(m, 2));
4029 EXPECT_EQ("which is 1 more than 5", Explain(m, 6));
4093 EXPECT_EQ("is empty", Describe(m));
4094 EXPECT_EQ("isn't empty", DescribeNegation(m));
4100 EXPECT_EQ("", Explain(m, container));
4102 EXPECT_EQ("whose size is 1", Explain(m, container));
4139 EXPECT_EQ("size is equal to 2", Describe(m));
4140 EXPECT_EQ("size isn't equal to 2", DescribeNegation(m));
4149 EXPECT_EQ("whose size 0 doesn't match", Explain(m1, container));
4150 EXPECT_EQ("whose size 0 matches", Explain(m2, container));
4151 EXPECT_EQ("whose size 0 matches", Explain(m3, container));
4152 EXPECT_EQ("whose size 0 doesn't match, which is 1 less than 1",
4156 EXPECT_EQ("whose size 2 matches", Explain(m1, container));
4157 EXPECT_EQ("whose size 2 doesn't match", Explain(m2, container));
4158 EXPECT_EQ("whose size 2 doesn't match", Explain(m3, container));
4159 EXPECT_EQ("whose size 2 matches, which is 1 more than 1",
4185 EXPECT_EQ("", Explain(m, my_set));
4196 EXPECT_EQ("which doesn't have these expected elements: 3",
4208 EXPECT_EQ("which has these unexpected elements: 46", Explain(m, test_set));
4219 EXPECT_EQ("which has these unexpected elements: 46,\n"
4233 EXPECT_EQ("", Explain(m, test_set));
4246 EXPECT_EQ("which doesn't have these expected elements: 3, 8",
4259 EXPECT_EQ("which has these unexpected elements: 92, 46",
4271 EXPECT_EQ("which has these unexpected elements: 92, 46,\n"
4287 EXPECT_EQ("", Explain(m, test_set));
4305 EXPECT_EQ("which has these unexpected elements: (0, \"aa\"),\n"
4404 EXPECT_EQ("(when sorted) has 2 elements where\n"
4408 EXPECT_EQ("(when sorted) doesn't have 2 elements, or\n"
4416 EXPECT_EQ("which is { 1, 2 } when sorted, whose element #0 doesn't match",
4418 EXPECT_EQ("which is { 1, 2 } when sorted",
4579 EXPECT_EQ(*ip++, *it++);
4605 EXPECT_EQ("distance between begin() and end() is equal to 2", Describe(m));
4606 EXPECT_EQ("distance between begin() and end() isn't equal to 2",
4616 EXPECT_EQ("whose distance between begin() and end() 0 doesn't match",
4618 EXPECT_EQ("whose distance between begin() and end() 0 matches",
4620 EXPECT_EQ("whose distance between begin() and end() 0 matches",
4622 EXPECT_EQ(
4628 EXPECT_EQ("whose distance between begin() and end() 2 matches",
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",
4634 EXPECT_EQ(
5108 EXPECT_EQ(FindBacktrackingMaxBPM(graph).size(), matches.size())
5160 EXPECT_EQ(FindBacktrackingMaxBPM(graph).size(),
5199 EXPECT_EQ(FindBacktrackingMaxBPM(graph).size(),
5244 EXPECT_EQ("", JoinAsTuple(Strings()));
5249 EXPECT_EQ("1", JoinAsTuple(Strings(fields, fields + 1)));
5254 EXPECT_EQ("(1, a)", JoinAsTuple(Strings(fields, fields + 2)));
5259 EXPECT_EQ("(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)",
5266 EXPECT_EQ("is even",
5268 EXPECT_EQ("not (is even)",
5272 EXPECT_EQ("equals 5",
5277 EXPECT_EQ("is in range (5, 8)",
5286 EXPECT_EQ(42, impl.divider());
5289 EXPECT_EQ(0, m.mutable_impl().divider());
5296 EXPECT_EQ(42, impl.divider());
5303 EXPECT_EQ("", ss1.str()); // Successful match.
5308 EXPECT_EQ(" Expected arg #0: is > 5\n"
5317 EXPECT_EQ(" Expected arg #0: is > 5\n"
5329 EXPECT_EQ("", Explain(m, a));
5334 EXPECT_EQ("", Explain(n, b));
5337 EXPECT_EQ("whose element #0 doesn't match", Explain(n, b));
5343 EXPECT_EQ("", Explain(m, a));
5346 EXPECT_EQ("whose element #0 doesn't match, which is 9 less than 10",
5352 EXPECT_EQ("only contains elements that is equal to 1", Describe(m));
5355 EXPECT_EQ("contains some element that isn't equal to 1", Describe(m2));
5443 EXPECT_EQ("contains 3 values, where each value and its corresponding value "
5446 EXPECT_EQ("doesn't contain exactly 3 values, or contains a value x at some "
5500 EXPECT_EQ("which contains 2 values",
5511 EXPECT_EQ("where the value pair (2, 6) at index #1 don't match, "
5520 EXPECT_EQ("", Explain(Pointwise(IsHalfOf(), rhs), lhs));
5528 EXPECT_EQ("", Explain(Pointwise(m1, rhs), lhs));
5534 EXPECT_EQ("", Explain(Pointwise(m2, rhs), lhs));
5543 EXPECT_EQ(
5552 EXPECT_EQ(
5611 EXPECT_EQ("which has 2 elements",
5622 EXPECT_EQ("where the following elements don't match any matchers:\n"