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

Diff of /code/trunk/testdata/testinput1

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

revision 131 by ph10, Mon Mar 26 15:10:12 2007 UTC revision 552 by ph10, Wed Oct 13 10:15:41 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      The quick brown FOX      The quick brown FOX
# Line 1494  Line 1497 
1497  /(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/  /(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)\12\123/
1498      abcdefghijk\12S      abcdefghijk\12S
1499    
1500  /ab\hdef/  /ab\idef/
1501      abhdef      abidef
1502    
1503  /a{0}bc/  /a{0}bc/
1504      bc      bc
# Line 2329  Line 2332 
2332      baz      baz
2333      foobarbaz      foobarbaz
2334    
2335  /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/
2336  /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/
2337  /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./
2338    
2339  /^(a\1?){4}$/  /^(a\1?){4}$/
2340      a      a
2341      aa      aa
2342      aaa      aaa
     aaaa  
2343      aaaaa      aaaaa
2344      aaaaaaa      aaaaaaa
2345      aaaaaaaa      aaaaaaaa
# Line 3421  Line 3423 
3423  /((?m)^b)/  /((?m)^b)/
3424      a\nb\nc\n      a\nb\nc\n
3425    
 /(?(1)a|b)/  
   
 /(?(1)b|a)/  
     a  
   
3426  /(x)?(?(1)a|b)/  /(x)?(?(1)a|b)/
3427      *** Failers      *** Failers
3428      a      a
# Line 4018  Line 4015 
4015    abc    abc
4016    abc\n    abc\n
4017    
4018  /^X/m  /(.*(.)?)*/
4019      XABC      abcd
4020      ** Failers  
4021      XABC\B  /( (A | (?(1)0|) )*   )/x
4022        abcd
4023    
4024    /( ( (?(1)0|) )*   )/x
4025        abcd
4026    
4027    /(  (?(1)0|)*   )/x
4028        abcd
4029    
4030    /[[:abcd:xyz]]/
4031        a]
4032        :]
4033    
4034    /[abc[:x\]pqr]/
4035        a
4036        [
4037        :
4038        ]
4039        p
4040    
4041    /.*[op][xyz]/
4042        fooabcfoo
4043    
4044    /(?(?=.*b)b|^)/
4045       adc
4046       abc
4047    
4048    /(?(?=^.*b)b|^)/
4049       adc
4050       abc
4051    
4052    /(?(?=.*b)b|^)*/
4053       adc
4054       abc
4055    
4056    /(?(?=.*b)b|^)+/
4057       adc
4058       abc
4059    
4060    /(?(?=b).*b|^d)/
4061        abc
4062    
4063    /(?(?=.*b).*b|^d)/
4064        abc
4065    
4066    /^%((?(?=[a])[^%])|b)*%$/
4067        %ab%
4068    
4069    /(?i)a(?-i)b|c/
4070        XabX
4071        XAbX
4072        CcC
4073        ** Failers
4074        XABX
4075    
4076    /[\x00-\xff\s]+/
4077        \x0a\x0b\x0c\x0d
4078    
4079  / End of testinput1 /  /-- End of testinput1 --/

Legend:
Removed from v.131  
changed lines
  Added in v.552

  ViewVC Help
Powered by ViewVC 1.1.5