diff options
author | Yves Orton <demerphq@gmail.com> | 2006-09-02 18:40:12 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-09-05 10:21:57 +0000 |
commit | 786e8c118e1218e4c348fecf469934e080881633 (patch) | |
tree | 0c59c96c6848740abfe47c2fb0fd29a10035b4a5 /t | |
parent | 7145db399bea60e9f2e625350c9081d1b1f3b08e (diff) | |
download | perl-786e8c118e1218e4c348fecf469934e080881633.tar.gz |
Re: [PATCH] Trie jumping
Message-ID: <9b18b3110609020740y2eb9004cpab313c3353a437ca@mail.gmail.com>
p4raw-id: //depot/perl@28785
Diffstat (limited to 't')
-rwxr-xr-x | t/op/pat.t | 8 | ||||
-rw-r--r-- | t/op/re_tests | 14 |
2 files changed, 21 insertions, 1 deletions
diff --git a/t/op/pat.t b/t/op/pat.t index f0f1b2bbb7..4ff133b619 100755 --- a/t/op/pat.t +++ b/t/op/pat.t @@ -7,7 +7,7 @@ $| = 1; # please update note at bottom of file when you change this -print "1..1231\n"; +print "1..1232\n"; BEGIN { chdir 't' if -d 't'; @@ -3394,6 +3394,12 @@ ok(("foba ba$s" =~ qr/(foo|Bass|bar)/i) ok(("foba ba$s" =~ qr/(foo|BaSS|bar)/i) && $1 eq "ba$s", "TRIEF + LATIN SMALL LETTER SHARP S =~ SS"); + +ok(("foba ba${s}pxySS$s$s" =~ qr/(b(?:a${s}t|a${s}f|a${s}p)[xy]+$s*)/i) + && $1 eq "ba${s}pxySS$s$s", + "COMMON PREFIX TRIEF + LATIN SMALL LETTER SHARP S"); + + } diff --git a/t/op/re_tests b/t/op/re_tests index d35104f253..f8ee725131 100644 --- a/t/op/re_tests +++ b/t/op/re_tests @@ -976,3 +976,17 @@ a(?!b(?!c))(..) abababc y $1 bc # test nested negatives a(?!b(?=a))(..) abababc y $1 bc # test nested lookaheads a(?!b(?!c(?!d(?!e))))...(.) abxabcdxabcde y $1 e X(?!b+(?!(c+)*(?!(c+)*d))).*X aXbbbbbbbccccccc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