Add endanchored tests for DFA matching.

This commit is contained in:
ph10 2017-04-05 15:32:07 +00:00
parent d112460049
commit ec16f83e0a
2 changed files with 46 additions and 0 deletions

19
testdata/testinput6 vendored
View File

@ -4892,4 +4892,23 @@
/^(a(?2))(b)(?1)/
abbab\=find_limits
/abc/endanchored
xyzabc
\= Expect no match
xyzabcdef
\= Expect error
xyzabc\=ph
/abc/
xyzabc\=endanchored
\= Expect no match
xyzabcdef\=endanchored
\= Expect error
xyzabc\=ps,endanchored
/abc|bcd/endanchored
xyzabcd
\= Expect no match
xyzabcdef
# End of testinput6

27
testdata/testoutput6 vendored
View File

@ -7694,4 +7694,31 @@ Failed: error -53: matching depth limit exceeded
Minimum depth limit = 2
0: abbab
/abc/endanchored
xyzabc
0: abc
\= Expect no match
xyzabcdef
No match
\= Expect error
xyzabc\=ph
Failed: error -34: bad option value
/abc/
xyzabc\=endanchored
0: abc
\= Expect no match
xyzabcdef\=endanchored
No match
\= Expect error
xyzabc\=ps,endanchored
Failed: error -34: bad option value
/abc|bcd/endanchored
xyzabcd
0: bcd
\= Expect no match
xyzabcdef
No match
# End of testinput6