summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-10-08 15:06:46 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2013-10-08 15:06:46 +0000
commite53ac621ef11427dd1c9fd6def13349cc196fd8c (patch)
treeff26bfb4308c63ef4d02d4c25cfee2c55b25529f /testdata
parent0277649fafae94e180c599aeb3592b77627d35b4 (diff)
downloadpcre-e53ac621ef11427dd1c9fd6def13349cc196fd8c.tar.gz
Update \8 and \9 handling to match most recent Perl.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1369 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput122
-rw-r--r--testdata/testinput818
-rw-r--r--testdata/testoutput145
-rw-r--r--testdata/testoutput828
4 files changed, 74 insertions, 39 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 07c5df6..550abc5 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -1483,14 +1483,19 @@
abc\100\x30
abc\100\060
abc\100\60
+
+/^A\8B\9C$/
+ A8B9C
+ *** Failers
+ A\08B\09C
+
+/^(A)(B)(C)(D)(E)(F)(G)(H)(I)\8\9$/
+ ABCDEFGHIHI
-/abc\81/
- abc\081
- abc\0\x38\x31
-
-/abc\91/
- abc\091
- abc\0\x39\x31
+/^[A\8B\9C]+$/
+ A8B9C
+ *** Failers
+ A8B9C\x00
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\12\123/
abcdefghijkllS
@@ -5626,5 +5631,8 @@ AbcdCBefgBhiBqz
/^ (?:(?<A>A)|(?'B'B)(?<A>A)) (?('A')x) (?(<B>)y)$/xJ
Ax
BAxy
+
+/^A\xZ/
+ A\0Z
/-- End of testinput1 --/
diff --git a/testdata/testinput8 b/testdata/testinput8
index 59a0329..fe836d4 100644
--- a/testdata/testinput8
+++ b/testdata/testinput8
@@ -1923,14 +1923,16 @@
abc\100\060
abc\100\60
-/abc\81/
- abc\081
- abc\0\x38\x31
-
-/abc\91/
- abc\091
- abc\0\x39\x31
-
+/^A\8B\9C$/
+ A8B9C
+ *** Failers
+ A\08B\09C
+
+/^[A\8B\9C]+$/
+ A8B9C
+ *** Failers
+ A8B9C\x00
+
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/
abcdefghijk\12S
diff --git a/testdata/testoutput1 b/testdata/testoutput1
index 25b098a..21efa6c 100644
--- a/testdata/testoutput1
+++ b/testdata/testoutput1
@@ -2149,18 +2149,35 @@ No match
abc\100\60
0: abc@0
1: abc
-
-/abc\81/
- abc\081
- 0: abc\x0081
- abc\0\x38\x31
- 0: abc\x0081
-
-/abc\91/
- abc\091
- 0: abc\x0091
- abc\0\x39\x31
- 0: abc\x0091
+
+/^A\8B\9C$/
+ A8B9C
+ 0: A8B9C
+ *** Failers
+No match
+ A\08B\09C
+No match
+
+/^(A)(B)(C)(D)(E)(F)(G)(H)(I)\8\9$/
+ ABCDEFGHIHI
+ 0: ABCDEFGHIHI
+ 1: A
+ 2: B
+ 3: C
+ 4: D
+ 5: E
+ 6: F
+ 7: G
+ 8: H
+ 9: I
+
+/^[A\8B\9C]+$/
+ A8B9C
+ 0: A8B9C
+ *** Failers
+No match
+ A8B9C\x00
+No match
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\12\123/
abcdefghijkllS
@@ -9246,5 +9263,9 @@ No match
1: <unset>
2: B
3: A
+
+/^A\xZ/
+ A\0Z
+ 0: A\x00Z
/-- End of testinput1 --/
diff --git a/testdata/testoutput8 b/testdata/testoutput8
index 85d449d..5ca6b45 100644
--- a/testdata/testoutput8
+++ b/testdata/testoutput8
@@ -2930,18 +2930,22 @@ No match
abc\100\60
0: abc@0
-/abc\81/
- abc\081
- 0: abc\x0081
- abc\0\x38\x31
- 0: abc\x0081
-
-/abc\91/
- abc\091
- 0: abc\x0091
- abc\0\x39\x31
- 0: abc\x0091
-
+/^A\8B\9C$/
+ A8B9C
+ 0: A8B9C
+ *** Failers
+No match
+ A\08B\09C
+No match
+
+/^[A\8B\9C]+$/
+ A8B9C
+ 0: A8B9C
+ *** Failers
+No match
+ A8B9C\x00
+No match
+
/(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/
abcdefghijk\12S
0: abcdefghijk\x0aS