forked from boostorg/regex
Start adding Perl verb support with FAIL as the first supported verb.
This commit is contained in:
1 parent
d8c95a9950
commit
b557febb0e
9 files changed
+93
-3
No files matched your search
@@ -932,3 +932,11 @@ void test_recursion()
|
||||
TEST_REGEX_SEARCH("(?:(?<A>a+)|(?<A>b+)|c+)\\.\\k<A>", perl, "cccc.cccc", match_default, make_array(-2, -2));
|
||||
}
|
||||
|
||||
void test_verbs()
|
||||
{
|
||||
using namespace boost::regex_constants;
|
||||
|
||||
TEST_INVALID_REGEX("a+(*", perl);
|
||||
TEST_INVALID_REGEX("a+(*FX)", perl);
|
||||
TEST_REGEX_SEARCH("a+(*FAIL)b", perl, "aaaab", match_default, make_array(-2, -2));
|
||||
}
|
||||
Reference in new issue
Block a user