/[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 370 by ph10, Sun Aug 24 18:33:00 2008 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      The quick brown FOX      The quick brown FOX
# 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 4039  Line 4041 
4041  /.*[op][xyz]/  /.*[op][xyz]/
4042      fooabcfoo      fooabcfoo
4043    
4044  / End of testinput1 /  /(?(?=.*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    /-- End of testinput1 --/

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

  ViewVC Help
Powered by ViewVC 1.1.5