summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-02-26 16:53:39 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-02-26 16:53:39 +0000
commit4ea71d47b6608e27759ebc39359c980d788db68a (patch)
tree99e2f55a345ce3a3a73ff6959d5adcf867534d93 /testdata
parentdd37c27fef3592a02fef0a8d9b98a78268717fe9 (diff)
downloadpcre2-4ea71d47b6608e27759ebc39359c980d788db68a.tar.gz
Fix bugs in new UCP casing code for back references and characters with more
than 2 cases. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1231 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput1214
-rw-r--r--testdata/testinput53
-rw-r--r--testdata/testoutput12-1618
-rw-r--r--testdata/testoutput12-3218
-rw-r--r--testdata/testoutput55
5 files changed, 58 insertions, 0 deletions
diff --git a/testdata/testinput12 b/testdata/testinput12
index fbfacc5..9b4f8d3 100644
--- a/testdata/testinput12
+++ b/testdata/testinput12
@@ -530,6 +530,20 @@
/X(\x{121})Y/ucp,replace=>\U$1<,substitute_extended
X\x{121}Y
+/s/i,ucp
+ \x{17f}
+
+/s/i,utf
+ \x{17f}
+
+/[^s]/i,ucp
+\= Expect no match
+ \x{17f}
+
+/[^s]/i,utf
+\= Expect no match
+ \x{17f}
+
# ----------------------------------------------------
# End of testinput12
diff --git a/testdata/testinput5 b/testdata/testinput5
index b3fcfef..ecac178 100644
--- a/testdata/testinput5
+++ b/testdata/testinput5
@@ -2181,4 +2181,7 @@
/(|ß)7/caseless,ucp
+/(\xc1)\1/i,ucp
+ \xc1\xe1\=no_jit
+
# End of testinput5
diff --git a/testdata/testoutput12-16 b/testdata/testoutput12-16
index 9689ab1..84c4858 100644
--- a/testdata/testoutput12-16
+++ b/testdata/testoutput12-16
@@ -1761,6 +1761,24 @@ Subject length lower bound = 1
X\x{121}Y
1: >\x{120}<
+/s/i,ucp
+ \x{17f}
+ 0: \x{17f}
+
+/s/i,utf
+ \x{17f}
+ 0: \x{17f}
+
+/[^s]/i,ucp
+\= Expect no match
+ \x{17f}
+No match
+
+/[^s]/i,utf
+\= Expect no match
+ \x{17f}
+No match
+
# ----------------------------------------------------
# End of testinput12
diff --git a/testdata/testoutput12-32 b/testdata/testoutput12-32
index c51c517..03b6e39 100644
--- a/testdata/testoutput12-32
+++ b/testdata/testoutput12-32
@@ -1759,6 +1759,24 @@ Subject length lower bound = 1
X\x{121}Y
1: >\x{120}<
+/s/i,ucp
+ \x{17f}
+ 0: \x{17f}
+
+/s/i,utf
+ \x{17f}
+ 0: \x{17f}
+
+/[^s]/i,ucp
+\= Expect no match
+ \x{17f}
+No match
+
+/[^s]/i,utf
+\= Expect no match
+ \x{17f}
+No match
+
# ----------------------------------------------------
# End of testinput12
diff --git a/testdata/testoutput5 b/testdata/testoutput5
index 5bdf873..2ff8516 100644
--- a/testdata/testoutput5
+++ b/testdata/testoutput5
@@ -4940,4 +4940,9 @@ Subject length lower bound = 3
/(|ß)7/caseless,ucp
+/(\xc1)\1/i,ucp
+ \xc1\xe1\=no_jit
+ 0: \xc1\xe1
+ 1: \xc1
+
# End of testinput5