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

Diff of /code/trunk/testdata/testoutput1

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

revision 93 by nigel, Sat Feb 24 21:41:42 2007 UTC revision 488 by ph10, Mon Jan 11 15:29:42 2010 UTC
# Line 1  Line 1 
1    /-- This set of tests is for features that are compatible with all versions of
2        Perl 5, in non-UTF-8 mode. --/
3    
4  /the quick brown fox/  /the quick brown fox/
5      the quick brown fox      the quick brown fox
6   0: the quick brown fox   0: the quick brown fox
# Line 2189  No match Line 2192  No match
2192  10: j  10: j
2193  11: k  11: k
2194    
2195  /ab\hdef/  /ab\idef/
2196      abhdef      abidef
2197   0: abhdef   0: abidef
2198    
2199  /a{0}bc/  /a{0}bc/
2200      bc      bc
# Line 3749  No match Line 3752  No match
3752      foobarbaz      foobarbaz
3753  No match  No match
3754    
3755  /The case of aaaaaa is missed out below because I think Perl 5.005_02 gets/  /The cases of aaaa and aaaaaa are missed out below because Perl does things/
3756  /it wrong; it sets $1 to aaa rather than aa. Compare the following test,/  /differently. We know that odd, and maybe incorrect, things happen with/
3757  No match  No match
3758  /where it does set $1 to aa when matching aaaaaa./  /recursive references in Perl, as far as 5.11.3 - see some stuff in test #2./
3759  No match  No match
3760    
3761  /^(a\1?){4}$/  /^(a\1?){4}$/
# Line 3762  No match Line 3765  No match
3765  No match  No match
3766      aaa      aaa
3767  No match  No match
     aaaa  
  0: aaaa  
  1: a  
3768      aaaaa      aaaaa
3769   0: aaaaa   0: aaaaa
3770   1: a   1: a
# Line 5551  No match Line 5551  No match
5551   0: b   0: b
5552   1: b   1: b
5553    
 /(?(1)a|b)/  
   
 /(?(1)b|a)/  
     a  
  0: a  
   
5554  /(x)?(?(1)a|b)/  /(x)?(?(1)a|b)/
5555      *** Failers      *** Failers
5556  No match  No match
# Line 6571  No match Line 6565  No match
6565    abc\n    abc\n
6566  No match  No match
6567    
6568  / End of testinput1 /  /(.*(.)?)*/
6569        abcd
6570     0: abcd
6571     1:
6572    
6573    /( (A | (?(1)0|) )*   )/x
6574        abcd
6575     0:
6576     1:
6577     2:
6578    
6579    /( ( (?(1)0|) )*   )/x
6580        abcd
6581     0:
6582     1:
6583     2:
6584    
6585    /(  (?(1)0|)*   )/x
6586        abcd
6587     0:
6588     1:
6589    
6590    /[[:abcd:xyz]]/
6591        a]
6592     0: a]
6593        :]
6594     0: :]
6595    
6596    /[abc[:x\]pqr]/
6597        a
6598     0: a
6599        [
6600     0: [
6601        :
6602     0: :
6603        ]
6604     0: ]
6605        p
6606     0: p
6607    
6608    /.*[op][xyz]/
6609        fooabcfoo
6610    No match
6611    
6612    /(?(?=.*b)b|^)/
6613       adc
6614     0:
6615       abc
6616     0: b
6617    
6618    /(?(?=^.*b)b|^)/
6619       adc
6620     0:
6621       abc
6622    No match
6623    
6624    /(?(?=.*b)b|^)*/
6625       adc
6626     0:
6627       abc
6628     0:
6629    
6630    /(?(?=.*b)b|^)+/
6631       adc
6632     0:
6633       abc
6634     0: b
6635    
6636    /(?(?=b).*b|^d)/
6637        abc
6638     0: b
6639    
6640    /(?(?=.*b).*b|^d)/
6641        abc
6642     0: ab
6643    
6644    /^%((?(?=[a])[^%])|b)*%$/
6645        %ab%
6646     0: %ab%
6647     1:
6648    
6649    /(?i)a(?-i)b|c/
6650        XabX
6651     0: ab
6652        XAbX
6653     0: Ab
6654        CcC
6655     0: c
6656        ** Failers
6657    No match
6658        XABX
6659    No match
6660    
6661    /-- End of testinput1 --/

Legend:
Removed from v.93  
changed lines
  Added in v.488

  ViewVC Help
Powered by ViewVC 1.1.5