From ec16f83e0a9e5945fb3915056b038deef6235891 Mon Sep 17 00:00:00 2001 From: ph10 Date: Wed, 5 Apr 2017 15:32:07 +0000 Subject: [PATCH] Add endanchored tests for DFA matching. --- testdata/testinput6 | 19 +++++++++++++++++++ testdata/testoutput6 | 27 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/testdata/testinput6 b/testdata/testinput6 index 2856551..e5e6df5 100644 --- a/testdata/testinput6 +++ b/testdata/testinput6 @@ -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 diff --git a/testdata/testoutput6 b/testdata/testoutput6 index c112d4e..819ae64 100644 --- a/testdata/testoutput6 +++ b/testdata/testoutput6 @@ -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