/[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 41 by nigel, Sat Feb 24 21:39:17 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.
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 testinput2 and testinput4 files are not suitable for feeding to perltest,  The perltest.pl script can also test UTF-8 features. It recognizes the special
18  since they do make use of the special upper case modifiers and escapes that  modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4
19  pcretest uses to test some features of PCRE. The first of these files also  file can be fed to perltest to run compatible UTF-8 tests.
 contains malformed regular expressions, in order to check that PCRE diagnoses  
 them correctly.  
20    
21  Philip Hazel <ph10@cam.ac.uk>  The other testinput files are not suitable for feeding to perltest.pl, since
22  January 2000  they make use of the special upper case modifiers and escapes that pcretest
23    uses to test some features of PCRE. Some of these files also contains malformed
24    regular expressions, in order to check that PCRE diagnoses them correctly.
25    
26    Philip Hazel
27    September 2009

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

  ViewVC Help
Powered by ViewVC 1.1.5