Lines Matching refs:matches
28 std::set<int> matches;
29 matcher.Match(test_string, &matches);
32 EXPECT_EQ(expected_matches, matches.size()) << test;
33 EXPECT_EQ(is_match, matches.find(1) != matches.end()) << test;
59 std::set<int> matches;
60 matcher.Match(test_string, &matches);
63 EXPECT_EQ(expected_matches, matches.size()) << test;
64 EXPECT_EQ(is_match_1, matches.find(1) != matches.end()) << test;
65 EXPECT_EQ(is_match_2, matches.find(2) != matches.end()) << test;
90 // Test identical matches
95 // Test multiple matches
100 // Test matches at beginning and end
140 std::set<int> matches;
141 matcher.Match("abd", &matches);
142 EXPECT_EQ(2u, matches.size());
143 EXPECT_TRUE(matches.end() != matches.find(1));
144 EXPECT_TRUE(matches.end() != matches.find(2));
150 matches.clear();
151 matcher.Match("abd", &matches);
152 EXPECT_EQ(1u, matches.size());
153 EXPECT_TRUE(matches.end() != matches.find(1));
154 EXPECT_TRUE(matches.end() == matches.find(2));
165 std::set<int> matches;
166 matcher.Match("abd", &matches);
167 EXPECT_TRUE(matches.empty());