/[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 63 by nigel, Sat Feb 24 21:40:03 2007 UTC revision 75 by nigel, Sat Feb 24 21:40:37 2007 UTC
# Line 7  input patterns can be followed only by P Line 7  input patterns can be followed only by P
7  used by pcretest), which is recognized and handled by the program.  used by pcretest), which is recognized and handled by the program.
8    
9  The data lines are processed as Perl double-quoted strings, so if they contain  The data lines are processed as Perl double-quoted strings, so if they contain
10  " \ $ or @ characters, these have to be escaped. For this reason, all such  " $ or @ characters, these have to be escaped. For this reason, all such
11  characters in testinput1 and testinput3 are escaped so that they can be used  characters in testinput1 and testinput4 are escaped so that they can be used
12  for perltest as well as for pcretest, and the special upper case modifiers such  for perltest as well as for pcretest. The special upper case pattern
13  as /A that pcretest recognizes are not used in these files. The output should  modifiers such as /A that pcretest recognizes, and its special data line
14  be identical, apart from the initial identifying banner.  escapes, are not used in these files. The output should be identical, apart
15    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 script can also test UTF-8 features. It works as is for Perl 5.8
18  or higher. It recognizes the special modifier /8 that pcretest uses to invoke  or higher. It recognizes the special modifier /8 that pcretest uses to invoke
19  UTF-8 functionality. The testinput5 file can be fed to perltest to run UTF-8  UTF-8 functionality. The testinput4 file can be fed to perltest to run
20  tests.  compatible UTF-8 tests.
21    
22  For Perl 5.6, perltest won't work unmodified for the UTF-8 tests. You need to  For Perl 5.6, perltest won't work unmodified for the UTF-8 tests. You need to
23  uncomment the "use utf8" lines that it contains. It is best to do this on a  uncomment the "use utf8" lines that it contains. It is best to do this on a
24  copy of the script, because for non-UTF-8 tests, these lines should remain  copy of the script, because for non-UTF-8 tests, these lines should remain
25  commented out.  commented out.
26    
27  The testinput2 and testinput4 files are not suitable for feeding to perltest,  The other testinput files are not suitable for feeding to perltest, since they
28  since they do make use of the special upper case modifiers and escapes that  make use of the special upper case modifiers and escapes that pcretest uses to
29  pcretest uses to test some features of PCRE. The first of these files also  test some features of PCRE. Some of these files also contains malformed regular
30  contains malformed regular expressions, in order to check that PCRE diagnoses  expressions, in order to check that PCRE diagnoses them correctly.
 them correctly. Similarly, testinput6 tests UTF-8 features that do not relate  
 to Perl.  
31    
32  Philip Hazel <ph10@cam.ac.uk>  Philip Hazel <ph10@cam.ac.uk>
33  August 2002  September 2004

Legend:
Removed from v.63  
changed lines
  Added in v.75

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12