Lines Matching full:matches
41 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local
43 ATF_REQUIRE(!matches); in ATF_TEST_CASE_BODY()
44 ATF_REQUIRE_EQ(0, matches.count()); in ATF_TEST_CASE_BODY()
51 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local
53 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
54 ATF_REQUIRE_EQ(1, matches.count()); in ATF_TEST_CASE_BODY()
55 ATF_REQUIRE_EQ("foo and bar", matches.get(0)); in ATF_TEST_CASE_BODY()
62 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local
64 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
65 ATF_REQUIRE_EQ(2, matches.count()); in ATF_TEST_CASE_BODY()
66 ATF_REQUIRE_EQ("the ", matches.get(0)); in ATF_TEST_CASE_BODY()
67 ATF_REQUIRE_EQ("the", matches.get(1)); in ATF_TEST_CASE_BODY()
74 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local
76 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
77 ATF_REQUIRE_EQ(3, matches.count()); in ATF_TEST_CASE_BODY()
78 ATF_REQUIRE_EQ("is another string to", matches.get(0)); in ATF_TEST_CASE_BODY()
79 ATF_REQUIRE_EQ("another", matches.get(1)); in ATF_TEST_CASE_BODY()
80 ATF_REQUIRE_EQ("string", matches.get(2)); in ATF_TEST_CASE_BODY()
87 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local
89 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
90 ATF_REQUIRE_EQ(2, matches.count()); in ATF_TEST_CASE_BODY()
91 ATF_REQUIRE_EQ("is another string to", matches.get(0)); in ATF_TEST_CASE_BODY()
92 ATF_REQUIRE_EQ("another", matches.get(1)); in ATF_TEST_CASE_BODY()
99 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local
101 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
102 ATF_REQUIRE_EQ(3, matches.count()); in ATF_TEST_CASE_BODY()
103 ATF_REQUIRE_EQ("is another string to", matches.get(0)); in ATF_TEST_CASE_BODY()
104 ATF_REQUIRE_EQ("another", matches.get(1)); in ATF_TEST_CASE_BODY()
105 ATF_REQUIRE_EQ("string", matches.get(2)); in ATF_TEST_CASE_BODY()
115 const text::regex_matches matches = regex.match("my number is 581."); in ATF_TEST_CASE_BODY() local
116 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
117 ATF_REQUIRE_EQ(2, matches.count()); in ATF_TEST_CASE_BODY()
118 ATF_REQUIRE_EQ("number is 581", matches.get(0)); in ATF_TEST_CASE_BODY()
119 ATF_REQUIRE_EQ("581", matches.get(1)); in ATF_TEST_CASE_BODY()
123 const text::regex_matches matches = regex.match("your number is 6"); in ATF_TEST_CASE_BODY() local
124 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY()
125 ATF_REQUIRE_EQ(2, matches.count()); in ATF_TEST_CASE_BODY()
126 ATF_REQUIRE_EQ("number is 6", matches.get(0)); in ATF_TEST_CASE_BODY()
127 ATF_REQUIRE_EQ("6", matches.get(1)); in ATF_TEST_CASE_BODY()