summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-11-18 11:07:14 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-11-18 11:07:14 +0000
commit2665f146c5250f8972d562a368b21e4f6350f4df (patch)
tree8ca0c452209a1c015d8279df4865fb7ff72b2297 /testdata
parent0c3ee8182f352dc0aeecb56b3e2ab353891da04d (diff)
downloadpcre-2665f146c5250f8972d562a368b21e4f6350f4df.tar.gz
Fix problem with possessively repeated groups with minima greater than one.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@750 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput114
-rw-r--r--testdata/testoutput123
2 files changed, 37 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 5c65ed6..61fd20b 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -4291,4 +4291,18 @@
/(?(?=c)c|d)*+Y/
XcccddYX
+/^(a{2,3}){2,}+a/
+ aaaaaaa
+ ** Failers
+ aaaaaa
+ aaaaaaaaa
+
+/^(a{2,3})++a/
+ ** Failers
+ aaaaaa
+
+/^(a{2,3})*+a/
+ ** Failers
+ aaaaaa
+
/-- End of testinput1 --/
diff --git a/testdata/testoutput1 b/testdata/testoutput1
index 54c0bf2..2557fe2 100644
--- a/testdata/testoutput1
+++ b/testdata/testoutput1
@@ -7012,4 +7012,27 @@ No match
XcccddYX
0: cccddY
+/^(a{2,3}){2,}+a/
+ aaaaaaa
+ 0: aaaaaaa
+ 1: aaa
+ ** Failers
+No match
+ aaaaaa
+No match
+ aaaaaaaaa
+No match
+
+/^(a{2,3})++a/
+ ** Failers
+No match
+ aaaaaa
+No match
+
+/^(a{2,3})*+a/
+ ** Failers
+No match
+ aaaaaa
+No match
+
/-- End of testinput1 --/