summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-11-25 18:46:35 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-11-25 18:46:35 +0000
commit46a3684f3211f67f30e8c1cb8eb2ebc8024b5dbe (patch)
tree04924a93a2a00aadaf0682ea22ea8862f53c29f6 /testdata
parent192f6b56cd1e5558cebba996cfeefaa2d50aa5f2 (diff)
downloadpcre2-46a3684f3211f67f30e8c1cb8eb2ebc8024b5dbe.tar.gz
Fix auto-callout with (?# comment bug.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@446 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput28
-rw-r--r--testdata/testinput54
-rw-r--r--testdata/testoutput236
-rw-r--r--testdata/testoutput520
4 files changed, 68 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index 9b6052d..1bd8c79 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -4689,4 +4689,12 @@ a)"xI
/a[b[:punct:]]/bincode
+/L(?#(|++<!(2)?/B
+
+/L(?#(|++<!(2)?/B,no_auto_possess
+
+/L(?#(|++<!(2)?/B,auto_callout
+
+/L(?#(|++<!(2)?/B,no_auto_possess,auto_callout
+
# End of testinput2
diff --git a/testdata/testinput5 b/testdata/testinput5
index 136712e..a9a1d7c 100644
--- a/testdata/testinput5
+++ b/testdata/testinput5
@@ -1712,4 +1712,8 @@
/[[:^ascii:]a]/utf,ucp,bincode
+/L(?#(|++<!(2)?/B,utf,no_auto_possess,auto_callout
+
+/L(?#(|++<!(2)?/B,utf,ucp,auto_callout
+
# End of testinput5
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index d44e79b..5a5fff5 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -14906,4 +14906,40 @@ Subject length lower bound = 0
End
------------------------------------------------------------------
+/L(?#(|++<!(2)?/B
+------------------------------------------------------------------
+ Bra
+ L?+
+ Ket
+ End
+------------------------------------------------------------------
+
+/L(?#(|++<!(2)?/B,no_auto_possess
+------------------------------------------------------------------
+ Bra
+ L?
+ Ket
+ End
+------------------------------------------------------------------
+
+/L(?#(|++<!(2)?/B,auto_callout
+------------------------------------------------------------------
+ Bra
+ Callout 255 0 14
+ L?+
+ Callout 255 14 0
+ Ket
+ End
+------------------------------------------------------------------
+
+/L(?#(|++<!(2)?/B,no_auto_possess,auto_callout
+------------------------------------------------------------------
+ Bra
+ Callout 255 0 14
+ L?
+ Callout 255 14 0
+ Ket
+ End
+------------------------------------------------------------------
+
# End of testinput2
diff --git a/testdata/testoutput5 b/testdata/testoutput5
index 9879231..9ca7562 100644
--- a/testdata/testoutput5
+++ b/testdata/testoutput5
@@ -4146,4 +4146,24 @@ No match
End
------------------------------------------------------------------
+/L(?#(|++<!(2)?/B,utf,no_auto_possess,auto_callout
+------------------------------------------------------------------
+ Bra
+ Callout 255 0 14
+ L?
+ Callout 255 14 0
+ Ket
+ End
+------------------------------------------------------------------
+
+/L(?#(|++<!(2)?/B,utf,ucp,auto_callout
+------------------------------------------------------------------
+ Bra
+ Callout 255 0 14
+ L?+
+ Callout 255 14 0
+ Ket
+ End
+------------------------------------------------------------------
+
# End of testinput5