diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-11-06 17:10:00 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-11-06 17:10:00 +0000 |
commit | 816309b6a76b4454b9e24dcd47d83960c92ad68b (patch) | |
tree | b5f9918ce2821f54a64ad1cc9a2ccc72e50878bb /testdata | |
parent | ed44c1dfe4d6a49f32fbb2927444306ccf4e0acb (diff) | |
download | pcre-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/testinput2 | 8 | ||||
-rw-r--r-- | testdata/testinput5 | 8 | ||||
-rw-r--r-- | testdata/testinput7 | 8 | ||||
-rw-r--r-- | testdata/testinput8 | 8 | ||||
-rw-r--r-- | testdata/testoutput2 | 14 | ||||
-rw-r--r-- | testdata/testoutput5 | 14 | ||||
-rw-r--r-- | testdata/testoutput7 | 17 | ||||
-rw-r--r-- | testdata/testoutput8 | 16 |
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 --/ |