Lines Matching defs:match
132 ATF_TEST_CASE(match);
133 ATF_TEST_CASE_HEAD(match)
135 set_md_var("descr", "Tests the match function");
137 ATF_TEST_CASE_BODY(match)
139 using atf::text::match;
141 ATF_REQUIRE_THROW(std::runtime_error, match("", "["));
143 ATF_REQUIRE(match("", ""));
144 ATF_REQUIRE(!match("foo", ""));
146 ATF_REQUIRE(match("", ".*"));
147 ATF_REQUIRE(match("", "[a-z]*"));
149 ATF_REQUIRE(match("hello", "hello"));
150 ATF_REQUIRE(match("hello", "[a-z]+"));
151 ATF_REQUIRE(match("hello", "^[a-z]+$"));
153 ATF_REQUIRE(!match("hello", "helooo"));
154 ATF_REQUIRE(!match("hello", "[a-z]+5"));
155 ATF_REQUIRE(!match("hello", "^ [a-z]+$"));
378 ATF_ADD_TEST_CASE(tcs, match);