/[pcre]/code/trunk/doc/perltest.txt
ViewVC logotype

Diff of /code/trunk/doc/perltest.txt

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

revision 96 by nigel, Fri Mar 2 13:10:43 2007 UTC revision 456 by ph10, Fri Oct 2 08:53:31 2009 UTC
# Line 1  Line 1 
1  The perltest program  The perltest program
2  --------------------  --------------------
3    
4  The perltest program tests Perl's regular expressions; it has the same  The perltest.pl script tests Perl's regular expressions; it has the same
5  specification as pcretest, and so can be given identical input, except that  specification as pcretest, and so can be given identical input, except that
6  input patterns can be followed only by Perl's lower case modifiers and /+ (as  input patterns can be followed only by Perl's lower case modifiers and /+ (as
7  used by pcretest), which is recognized and handled by the program.  used by pcretest), which is recognized and handled by the program.
# Line 14  modifiers such as /A that pcretest recog Line 14  modifiers such as /A that pcretest recog
14  escapes, are not used in these files. The output should be identical, apart  escapes, are not used in these files. The output should be identical, apart
15  from the initial identifying banner.  from the initial identifying banner.
16    
17  The perltest script can also test UTF-8 features. It works as is for Perl 5.8  The perltest.pl script can also test UTF-8 features. It recognizes the special
18  or higher. It recognizes the special modifier /8 that pcretest uses to invoke  modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4
19  UTF-8 functionality. The testinput4 file can be fed to perltest to run  file can be fed to perltest to run compatible UTF-8 tests.
20  compatible UTF-8 tests.  
21    The other testinput files are not suitable for feeding to perltest.pl, since
22  For Perl 5.6, perltest won't work unmodified for the UTF-8 tests. You need to  they make use of the special upper case modifiers and escapes that pcretest
23  uncomment the "use utf8" lines that it contains. It is best to do this on a  uses to test some features of PCRE. Some of these files also contains malformed
24  copy of the script, because for non-UTF-8 tests, these lines should remain  regular expressions, in order to check that PCRE diagnoses them correctly.
 commented out.  
   
 The other testinput files are not suitable for feeding to perltest, since they  
 make use of the special upper case modifiers and escapes that pcretest uses to  
 test some features of PCRE. Some of these files also contains malformed regular  
 expressions, in order to check that PCRE diagnoses them correctly.  
25    
26  Philip Hazel  Philip Hazel
27  September 2004  September 2009

Legend:
Removed from v.96  
changed lines
  Added in v.456

  ViewVC Help
Powered by ViewVC 1.1.5