Lines Matching defs:element
1249 "element #0 is equal to 1,\n"
1250 "element #1 is equal to 2",
1254 "element #0 isn't equal to 1, or\n"
1255 "element #1 isn't equal to 2",
1261 EXPECT_EQ("which is { 1, 2 } when sorted, whose element #0 doesn't match",
1577 " - an element is equal to 111\n"
1578 " - an element is equal to 222\n"
1579 " - an element is equal to 333"));
1591 " - an element is equal to 111\n"
1592 " - an element is equal to 222\n"
1593 " - an element is equal to 333"));
1615 " - element #0 is matched by matcher #1,\n"
1616 " - element #2 is matched by matcher #0"));
1705 " - an element is equal to 111\n"
1706 " - an element is equal to 222\n"
1707 " - an element is equal to 333"));
1719 " - an element is equal to 111\n"
1720 " - an element is equal to 222\n"
1721 " - an element is equal to 333"));
1736 "element #1: 3"));
1743 " - element #0 is matched by matcher #1,\n"
1744 " - element #1 is matched by matcher #2"));
1896 // unified element type in this case.
1940 // The element with value '3' matches nothing: fail fast.
2007 EXPECT_THAT(listener.str(), Eq("which has 1 element"));
2039 "element #1: 2"));
2056 "element #1: 3"));
2059 // Test helper for formatting element, matcher index pairs in expectations.
2060 static std::string EMString(int element, int matcher) {
2062 ss << "(element #" << element << ", matcher #" << matcher << ")";
2097 Eq("has 1 element and that element is equal to 345"));
2101 " - element #0 is equal to 111, and\n"
2102 " - element #1 is equal to 222, and\n"
2103 " - element #2 is equal to 333"));
2111 Eq("doesn't have 1 element, or has 1 element that isn't equal to 345"));
2115 " - element #0 is equal to 123, and\n"
2116 " - element #1 is equal to 234, and\n"
2117 " - element #2 is equal to 345"));
2136 EXPECT_EQ("whose element #0 doesn't match", Explain(n, b));
2145 EXPECT_EQ("whose element #0 doesn't match, which is 9 less than 10",
2154 EXPECT_EQ("contains some element that isn't equal to 1", Describe(m2));
2370 " - element #0 and 1 are a pair where the first is half of the second, "
2372 " - element #1 and 2 are a pair where the first is half of the second, "
2374 " - element #2 and 3 are a pair where the first is half of the second",
2379 " - element #0 and 1 are a pair where the first is half of the second, "
2381 " - element #1 and 2 are a pair where the first is half of the second, "
2383 " - element #2 and 3 are a pair where the first is half of the second",
2444 "element #1: 2",
2572 EXPECT_EQ("has 1 element that is > 5", Describe(m));
2579 "element #0 is equal to \"one\",\n"
2580 "element #1 is equal to \"two\"",
2592 "doesn't have 1 element, or\n"
2593 "element #0 isn't > 5",
2601 "element #0 isn't equal to \"one\", or\n"
2602 "element #1 isn't equal to \"two\"",
2622 "whose element #0 matches, which is 9 more than 1,\n"
2623 "and whose element #2 matches, which is 98 more than 2",
2635 EXPECT_EQ("which has 1 element", Explain(m, test_list));
2644 EXPECT_EQ("whose element #0 doesn't match", Explain(m, v));
2647 EXPECT_EQ("whose element #1 doesn't match, which is 4 less than 5",
2709 // The element list can contain values and/or matchers
2930 // unified element type in this case.
3049 EXPECT_EQ("whose element #1 matches", Explain(m, a));
3055 EXPECT_EQ("whose element #0 matches, which is 1 more than 0", Explain(m, a));
3063 EXPECT_EQ("contains at least one element that is equal to 1", Describe(m));
3066 EXPECT_EQ("doesn't contain any element that is equal to 1", Describe(m2));