diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-04-07 16:19:03 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-04-07 16:19:03 +0000 |
commit | c3579a7581cb8b3ca3c9617d63083afea29de646 (patch) | |
tree | 9c4916b405e135fba655935d3f0f598a1bb091bb /testdata | |
parent | b4332d7dd831b3547b3f541495de4a79554e538e (diff) | |
download | pcre-c3579a7581cb8b3ca3c9617d63083afea29de646.tar.gz |
Fix pcretest loop for \K in lookbehind assertion.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1544 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput2 | 6 | ||||
-rw-r--r-- | testdata/testinput5 | 6 | ||||
-rw-r--r-- | testdata/testoutput2 | 28 | ||||
-rw-r--r-- | testdata/testoutput5 | 28 |
4 files changed, 68 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2 index c31b6c9..b834407 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -4144,4 +4144,10 @@ backtracking verbs. --/ "(?<=((?2))((?1)))" +/(?<=\Ka)/g+ + aaaaa + +/(?<=\Ka)/G+ + aaaaa + /-- End of testinput2 --/ diff --git a/testdata/testinput5 b/testdata/testinput5 index e985fe5..28561a9 100644 --- a/testdata/testinput5 +++ b/testdata/testinput5 @@ -792,4 +792,10 @@ /[^\xff]*PRUNE:\x{100}abc(xyz(?1))/8DZ +/(?<=\K\x{17f})/8g+ + \x{17f}\x{17f}\x{17f}\x{17f}\x{17f} + +/(?<=\K\x{17f})/8G+ + \x{17f}\x{17f}\x{17f}\x{17f}\x{17f} + /-- End of testinput5 --/ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index 4b8eec2..359bcf9 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -14393,4 +14393,32 @@ Failed: assertion expected after (?( at offset 3 "(?<=((?2))((?1)))" Failed: lookbehind assertion is not fixed length at offset 17 +/(?<=\Ka)/g+ + aaaaa + 0: a + 0+ aaaa + 0: a + 0+ aaaa + 0: a + 0+ aaa + 0: a + 0+ aa + 0: a + 0+ a + 0: a + 0+ + +/(?<=\Ka)/G+ + aaaaa + 0: a + 0+ aaaa + 0: a + 0+ aaa + 0: a + 0+ aa + 0: a + 0+ a + 0: a + 0+ + /-- End of testinput2 --/ diff --git a/testdata/testoutput5 b/testdata/testoutput5 index 5af03a0..bab989c 100644 --- a/testdata/testoutput5 +++ b/testdata/testoutput5 @@ -1914,4 +1914,32 @@ Options: utf No first char Need char = 'z' +/(?<=\K\x{17f})/8g+ + \x{17f}\x{17f}\x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f} + 0: \x{17f} + 0+ + +/(?<=\K\x{17f})/8G+ + \x{17f}\x{17f}\x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f}\x{17f} + 0: \x{17f} + 0+ \x{17f} + 0: \x{17f} + 0+ + /-- End of testinput5 --/ |