Lines Matching refs:match
136 ATF_TEST_CASE(match);
137 ATF_TEST_CASE_HEAD(match)
139 set_md_var("descr", "Tests the match function");
141 ATF_TEST_CASE_BODY(match)
143 using atf::text::match;
145 ATF_REQUIRE_THROW(std::runtime_error, match("", "["));
147 ATF_REQUIRE(match("", ""));
148 ATF_REQUIRE(!match("foo", ""));
150 ATF_REQUIRE(match("", ".*"));
151 ATF_REQUIRE(match("", "[a-z]*"));
153 ATF_REQUIRE(match("hello", "hello"));
154 ATF_REQUIRE(match("hello", "[a-z]+"));
155 ATF_REQUIRE(match("hello", "^[a-z]+$"));
157 ATF_REQUIRE(!match("hello", "helooo"));
158 ATF_REQUIRE(!match("hello", "[a-z]+5"));
159 ATF_REQUIRE(!match("hello", "^ [a-z]+$"));
382 ATF_ADD_TEST_CASE(tcs, match);