/[pcre]/code/trunk/testdata/testoutput2
ViewVC logotype

Diff of /code/trunk/testdata/testoutput2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 472 by ph10, Fri Dec 11 16:42:50 2009 UTC revision 504 by ph10, Mon Mar 8 08:57:04 2010 UTC
# Line 857  No match Line 857  No match
857      a      a
858  No match  No match
859    
860  /This one is here because I think Perl 5.005_02 gets the setting of $1 wrong/I  /This one is here because Perl behaves differently; see also the following/I
861  Capturing subpattern count = 0  Capturing subpattern count = 0
862  No options  No options
863  First char = 'T'  First char = 'T'
# Line 869  Max back reference = 1 Line 869  Max back reference = 1
869  Options: anchored  Options: anchored
870  No first char  No first char
871  No need char  No need char
872        aaaa
873    No match
874      aaaaaa      aaaaaa
875   0: aaaaaa  No match
876   1: aa  
877    /Perl does not fail these two for the final subjects. Neither did PCRE until/
878    /release 8.01. The problem is in backtracking into a subpattern that contains/
879    No match
880    /a recursive reference to itself. PCRE has now made these into atomic patterns./
881    No match
882    
883    /^(xa|=?\1a){2}$/
884        xa=xaa
885     0: xa=xaa
886     1: =xaa
887        ** Failers
888    No match
889        xa=xaaa
890    No match
891    
892    /^(xa|=?\1a)+$/
893        xa=xaa
894     0: xa=xaa
895     1: =xaa
896        ** Failers
897    No match
898        xa=xaaa
899    No match
900    
901  /These are syntax tests from Perl 5.005/I  /These are syntax tests from Perl 5.005/I
902  Capturing subpattern count = 0  Capturing subpattern count = 0
# Line 10535  No match Line 10560  No match
10560          End          End
10561  ------------------------------------------------------------------  ------------------------------------------------------------------
10562    
10563    /^(ab(c\1)d|x){2}$/BZ
10564    ------------------------------------------------------------------
10565            Bra
10566            ^
10567            Once
10568            CBra 1
10569            ab
10570            CBra 2
10571            c
10572            \1
10573            Ket
10574            d
10575            Alt
10576            x
10577            Ket
10578            Ket
10579            Once
10580            CBra 1
10581            ab
10582            CBra 2
10583            c
10584            \1
10585            Ket
10586            d
10587            Alt
10588            x
10589            Ket
10590            Ket
10591            $
10592            Ket
10593            End
10594    ------------------------------------------------------------------
10595        xabcxd
10596     0: xabcxd
10597     1: abcxd
10598     2: cx
10599    
10600    /^(?&t)*+(?(DEFINE)(?<t>.))$/BZ
10601    ------------------------------------------------------------------
10602            Bra
10603            ^
10604            Once
10605            Brazero
10606            Once
10607            Recurse
10608            KetRmax
10609            Ket
10610            Cond
10611            Cond def
10612            CBra 1
10613            Any
10614            Ket
10615            Ket
10616            $
10617            Ket
10618            End
10619    ------------------------------------------------------------------
10620    
10621    /^(?&t)*(?(DEFINE)(?<t>.))$/BZ
10622    ------------------------------------------------------------------
10623            Bra
10624            ^
10625            Brazero
10626            Once
10627            Recurse
10628            KetRmax
10629            Cond
10630            Cond def
10631            CBra 1
10632            Any
10633            Ket
10634            Ket
10635            $
10636            Ket
10637            End
10638    ------------------------------------------------------------------
10639    
10640    / -- The first four of these are not in the Perl 5.10 test because Perl
10641         documents that the use of \K in assertions is "not well defined". The
10642         last is here because Perl gives the match as "b" rather than "ab". I
10643         believe this to be a Perl bug. --/
10644    
10645    /(?=a\Kb)ab/
10646        ab
10647     0: b
10648    
10649    /(?!a\Kb)ac/
10650        ac
10651     0: ac
10652    
10653    /^abc(?<=b\Kc)d/
10654        abcd
10655     0: cd
10656    
10657    /^abc(?<!b\Kq)d/
10658        abcd
10659     0: abcd
10660    
10661    /(?>a\Kb)z|(ab)/
10662        ab
10663     0: ab
10664     1: ab
10665    
10666    /----------------------/
10667    
10668    /(?P<L1>(?P<L2>0|)|(?P>L2)(?P>L1))/
10669    Failed: recursive call could loop indefinitely at offset 31
10670    
10671  /-- End of testinput2 --/  /-- End of testinput2 --/

Legend:
Removed from v.472  
changed lines
  Added in v.504

  ViewVC Help
Powered by ViewVC 1.1.5