Revision: 732
http://www.exim.org/viewvc/pcre2?view=rev&revision=732
Author: ph10
Date: 2017-04-05 16:32:07 +0100 (Wed, 05 Apr 2017)
Log Message:
-----------
Add endanchored tests for DFA matching.
Modified Paths:
--------------
code/trunk/testdata/testinput6
code/trunk/testdata/testoutput6
Modified: code/trunk/testdata/testinput6
===================================================================
--- code/trunk/testdata/testinput6 2017-04-04 17:09:33 UTC (rev 731)
+++ code/trunk/testdata/testinput6 2017-04-05 15:32:07 UTC (rev 732)
@@ -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
Modified: code/trunk/testdata/testoutput6
===================================================================
--- code/trunk/testdata/testoutput6 2017-04-04 17:09:33 UTC (rev 731)
+++ code/trunk/testdata/testoutput6 2017-04-05 15:32:07 UTC (rev 732)
@@ -7694,4 +7694,31 @@
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