diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-28 16:10:09 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-12-28 16:10:09 +0000 |
commit | a29cc4dc66d82b59de7616c53517c58271e6e0e8 (patch) | |
tree | c74caa3f756e12f475c840392d507a89bcfe8bc8 /testdata/testinput11 | |
parent | 77b62a421481e0547788d4c0dc7539ac7f41d85b (diff) | |
download | pcre-a29cc4dc66d82b59de7616c53517c58271e6e0e8.tar.gz |
Rolled back trunk to r755 to prepare for merging the 16-bit branch.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@835 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata/testinput11')
-rw-r--r-- | testdata/testinput11 | 153 |
1 files changed, 14 insertions, 139 deletions
diff --git a/testdata/testinput11 b/testdata/testinput11 index 0f33cb1..a9d1cfd 100644 --- a/testdata/testinput11 +++ b/testdata/testinput11 @@ -452,6 +452,20 @@ with the handling of backtracking verbs. ---/ /A(*MARK:A)A+(*SKIP:B)(B|Z) | AC(*:B)/xK AAAC +/--- We use something more complicated than individual letters here, because +that causes different behaviour in Perl. Perhaps it disables some optimization; +anyway, the result now matches PCRE in that no tag is passed back for the +failures. ---/ + +/(A|P)(*:A)(B|P) | (X|P)(X|P)(*:B)(Y|P)/xK + AABC + XXYZ + ** Failers + XAQQ + XAQQXZZ + AXQQQ + AXXQQQ + /--- COMMIT at the start of a pattern should act like an anchor. Again, however, we need the complication for Perl. ---/ @@ -786,143 +800,4 @@ name)/K /(?<=a(*THEN)b)c/ xabcd -/(a)(?2){2}(.)/ - abcd - -/(*MARK:A)(*PRUNE:B)(C|X)/KS - C - D - -/(*MARK:A)(*PRUNE:B)(C|X)/KSS - C - D - -/(*MARK:A)(*THEN:B)(C|X)/KS - C - D - -/(*MARK:A)(*THEN:B)(C|X)/KSY - C - D - -/(*MARK:A)(*THEN:B)(C|X)/KSS - C - D - -/--- This should fail, as the skip causes a bump to offset 3 (the skip) ---/ - -/A(*MARK:A)A+(*SKIP)(B|Z) | AC/xK - AAAC - -/--- Same --/ - -/A(*MARK:A)A+(*MARK:B)(*SKIP:B)(B|Z) | AC/xK - AAAC - -/A(*:A)A+(*SKIP)(B|Z) | AC/xK - AAAC - -/--- This should fail, as a null name is the same as no name ---/ - -/A(*MARK:A)A+(*SKIP:)(B|Z) | AC/xK - AAAC - -/--- A check on what happens after hitting a mark and them bumping along to -something that does not even start. Perl reports tags after the failures here, -though it does not when the individual letters are made into something -more complicated. ---/ - -/A(*:A)B|XX(*:B)Y/K - AABC - XXYZ - ** Failers - XAQQ - XAQQXZZ - AXQQQ - AXXQQQ - -/^(A(*THEN:A)B|C(*THEN:B)D)/K - AB - CD - ** Failers - AC - CB - -/^(A(*PRUNE:A)B|C(*PRUNE:B)D)/K - AB - CD - ** Failers - AC - CB - -/--- An empty name does not pass back an empty string. It is the same as if no -name were given. ---/ - -/^(A(*PRUNE:)B|C(*PRUNE:B)D)/K - AB - CD - -/--- PRUNE goes to next bumpalong; COMMIT does not. ---/ - -/A(*PRUNE:A)B/K - ACAB - -/--- Mark names can be duplicated ---/ - -/A(*:A)B|X(*:A)Y/K - AABC - XXYZ - -/b(*:m)f|a(*:n)w/K - aw - ** Failers - abc - -/b(*:m)f|aw/K - abaw - ** Failers - abc - abax - -/A(*MARK:A)A+(*SKIP:B)(B|Z) | AAC/xK - AAAC - -/a(*PRUNE:X)bc|qq/KY - ** Failers - axy - -/a(*THEN:X)bc|qq/KY - ** Failers - axy - -/(?=a(*MARK:A)b)..x/K - abxy - ** Failers - abpq - -/(?=a(*MARK:A)b)..(*:Y)x/K - abxy - ** Failers - abpq - -/(?=a(*PRUNE:A)b)..x/K - abxy - ** Failers - abpq - -/(?=a(*PRUNE:A)b)..(*:Y)x/K - abxy - ** Failers - abpq - -/(?=a(*THEN:A)b)..x/K - abxy - ** Failers - abpq - -/(?=a(*THEN:A)b)..(*:Y)x/K - abxy - ** Failers - abpq - /-- End of testinput11 --/ |