summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-11-06 17:10:00 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2010-11-06 17:10:00 +0000
commit816309b6a76b4454b9e24dcd47d83960c92ad68b (patch)
treeb5f9918ce2821f54a64ad1cc9a2ccc72e50878bb /testdata
parented44c1dfe4d6a49f32fbb2927444306ccf4e0acb (diff)
downloadpcre-816309b6a76b4454b9e24dcd47d83960c92ad68b.tar.gz
Test for ridiculous values of starting offsets; tidy UTF-8 code.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@567 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput28
-rw-r--r--testdata/testinput58
-rw-r--r--testdata/testinput78
-rw-r--r--testdata/testinput88
-rw-r--r--testdata/testoutput214
-rw-r--r--testdata/testoutput514
-rw-r--r--testdata/testoutput717
-rw-r--r--testdata/testoutput816
8 files changed, 93 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2
index 8967ba2..caa664b 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -3544,4 +3544,12 @@ with \Y. ---/
abc\P
abc\P\P
+/.+/
+ abc\>0
+ abc\>1
+ abc\>2
+ abc\>3
+ abc\>4
+ abc\>-4
+
/-- End of testinput2 --/
diff --git a/testdata/testinput5 b/testdata/testinput5
index b2b2ffc..aca97d1 100644
--- a/testdata/testinput5
+++ b/testdata/testinput5
@@ -816,4 +816,12 @@ correctly, but that messes up comparisons). --/
/\g{A}xxx#bх(?'A'123) (?'A'456)/8x<any>BZ
+/a+/8
+ a\x{123}aa\>1
+ a\x{123}aa\>2
+ a\x{123}aa\>3
+ a\x{123}aa\>4
+ a\x{123}aa\>5
+ a\x{123}aa\>6
+
/-- End of testinput5 --/
diff --git a/testdata/testinput7 b/testdata/testinput7
index 163f2a5..012af7f 100644
--- a/testdata/testinput7
+++ b/testdata/testinput7
@@ -4596,4 +4596,12 @@
abc\P
abc\P\P
+/.+/
+ abc\>0
+ abc\>1
+ abc\>2
+ abc\>3
+ abc\>4
+ abc\>-4
+
/-- End of testinput7 --/
diff --git a/testdata/testinput8 b/testdata/testinput8
index 2a6bef3..bae2f57 100644
--- a/testdata/testinput8
+++ b/testdata/testinput8
@@ -689,4 +689,12 @@
the cat\P
the cat\P\P
+/a+/8
+ a\x{123}aa\>1
+ a\x{123}aa\>2
+ a\x{123}aa\>3
+ a\x{123}aa\>4
+ a\x{123}aa\>5
+ a\x{123}aa\>6
+
/-- End of testinput8 --/
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 33419e5..2cd7bd9 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -11217,4 +11217,18 @@ Partial match: abc
abc\P\P
Partial match: abc
+/.+/
+ abc\>0
+ 0: abc
+ abc\>1
+ 0: bc
+ abc\>2
+ 0: c
+ abc\>3
+No match
+ abc\>4
+Error -24
+ abc\>-4
+Error -24
+
/-- End of testinput2 --/
diff --git a/testdata/testoutput5 b/testdata/testoutput5
index d5bc270..fc2409a 100644
--- a/testdata/testoutput5
+++ b/testdata/testoutput5
@@ -2292,4 +2292,18 @@ Starting byte set: \x00 \x01 \x02 \x03 \x04 \x05 \x06 \x07 \x08 \x0b \x0e
End
------------------------------------------------------------------
+/a+/8
+ a\x{123}aa\>1
+ 0: aa
+ a\x{123}aa\>2
+Error -11
+ a\x{123}aa\>3
+ 0: aa
+ a\x{123}aa\>4
+ 0: a
+ a\x{123}aa\>5
+No match
+ a\x{123}aa\>6
+Error -24
+
/-- End of testinput5 --/
diff --git a/testdata/testoutput7 b/testdata/testoutput7
index 3b12f07..add4dfb 100644
--- a/testdata/testoutput7
+++ b/testdata/testoutput7
@@ -7668,4 +7668,21 @@ Partial match: abc
abc\P\P
Partial match: abc
+/.+/
+ abc\>0
+ 0: abc
+ 1: ab
+ 2: a
+ abc\>1
+ 0: bc
+ 1: b
+ abc\>2
+ 0: c
+ abc\>3
+No match
+ abc\>4
+Error -24
+ abc\>-4
+Error -24
+
/-- End of testinput7 --/
diff --git a/testdata/testoutput8 b/testdata/testoutput8
index 0e60e7a..d663025 100644
--- a/testdata/testoutput8
+++ b/testdata/testoutput8
@@ -1326,4 +1326,20 @@ Partial match: abcde
the cat\P\P
Partial match: the cat
+/a+/8
+ a\x{123}aa\>1
+ 0: aa
+ 1: a
+ a\x{123}aa\>2
+Error -11
+ a\x{123}aa\>3
+ 0: aa
+ 1: a
+ a\x{123}aa\>4
+ 0: a
+ a\x{123}aa\>5
+No match
+ a\x{123}aa\>6
+Error -24
+
/-- End of testinput8 --/