summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-03 16:08:23 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-03-03 16:08:23 +0000
commitbb83db6447434ffc92fdee4feb08d99b45e00f9d (patch)
treec287052564082140b69d9758f0729dc296423c68 /testdata
parentccb6ec2e2cbd01c49832a4ba80f0ec4425846138 (diff)
downloadpcre-bb83db6447434ffc92fdee4feb08d99b45e00f9d.tar.gz
Fix bug with (?(?=.*b)b|^) thinking it must match at start of line; also fix
bug causing a crash when auto-callout is used with a conditional assertion. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@381 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput16
-rw-r--r--testdata/testinput28
-rw-r--r--testdata/testoutput18
-rw-r--r--testdata/testoutput252
4 files changed, 74 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index dc01c0c..ecfd365 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -4055,4 +4055,10 @@
adc
abc
+/(?(?=b).*b|^d)/
+ abc
+
+/(?(?=.*b).*b|^d)/
+ abc
+
/ End of testinput1 /
diff --git a/testdata/testinput2 b/testdata/testinput2
index 2b64546..2f80926 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -2726,4 +2726,12 @@ a random value. /Ix
/(abc|pqr|123){0}[xyz]/SI
+/(?(?=.*b)b|^)/CI
+ adc
+ abc
+
+/(?(?=b).*b|^d)/I
+
+/(?(?=.*b).*b|^d)/I
+
/ End of testinput2 /
diff --git a/testdata/testoutput1 b/testdata/testoutput1
index 0e26007..83ef39c 100644
--- a/testdata/testoutput1
+++ b/testdata/testoutput1
@@ -6633,4 +6633,12 @@ No match
abc
0: b
+/(?(?=b).*b|^d)/
+ abc
+ 0: b
+
+/(?(?=.*b).*b|^d)/
+ abc
+ 0: ab
+
/ End of testinput1 /
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 2ac018b..477c145 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -9638,4 +9638,56 @@ No first char
No need char
Starting byte set: x y z
+/(?(?=.*b)b|^)/CI
+Capturing subpattern count = 0
+Partial matching not supported
+Options:
+No first char
+No need char
+ adc
+--->adc
+ +0 ^ (?(?=.*b)b|^)
+ +2 ^ (?=.*b)
+ +5 ^ .*
+ +7 ^ ^ b
+ +7 ^ ^ b
+ +7 ^^ b
+ +7 ^ b
+ 0:
+ abc
+--->abc
+ +0 ^ (?(?=.*b)b|^)
+ +2 ^ (?=.*b)
+ +5 ^ .*
+ +7 ^ ^ b
+ +7 ^ ^ b
+ +7 ^^ b
+ +8 ^ ^ )
+ +9 ^ b
+ +0 ^ (?(?=.*b)b|^)
+ +2 ^ (?=.*b)
+ +5 ^ .*
+ +7 ^ ^ b
+ +7 ^^ b
+ +7 ^ b
+ +8 ^^ )
+ +9 ^ b
++10 ^^ |
++13 ^^
+ 0: b
+
+/(?(?=b).*b|^d)/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+No first char
+No need char
+
+/(?(?=.*b).*b|^d)/I
+Capturing subpattern count = 0
+Partial matching not supported
+No options
+First char at start or follows newline
+No need char
+
/ End of testinput2 /