/[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 456 by ph10, Fri Oct 2 08:53:31 2009 UTC revision 458 by ph10, Sat Oct 3 16:48:17 2009 UTC
# Line 8  used by pcretest), which is recognized a Line 8  used by pcretest), which is recognized a
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 testinput4 are escaped so that they can be used  characters in testinput1, testinput4, testinput6, and testinput11 are escaped
12  for perltest as well as for pcretest. The special upper case pattern  so that they can be used for perltest as well as for pcretest. The special
13  modifiers such as /A that pcretest recognizes, and its special data line  upper case pattern modifiers such as /A that pcretest recognizes, and its
14  escapes, are not used in these files. The output should be identical, apart  special data line escapes, are not used in these files. The output should be
15  from the initial identifying banner.  identical, apart from the initial identifying banner.
16    
17  The perltest.pl script can also test UTF-8 features. It recognizes the special  The perltest.pl script can also test UTF-8 features. It recognizes the special
18  modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4  modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4
19  file can be fed to perltest to run compatible UTF-8 tests.  and testinput6 files can be fed to perltest to run compatible UTF-8 tests.
20    However, it is necessary to add "use utf8;" to the script to make this work
21    correctly.
22    
23    The testinput11 file contains tests that use features of Perl 5.10, so does not
24    work with Perl 5.8.
25    
26  The other testinput files are not suitable for feeding to perltest.pl, since  The other testinput files are not suitable for feeding to perltest.pl, since
27  they make use of the special upper case modifiers and escapes that pcretest  they make use of the special upper case modifiers and escapes that pcretest
# Line 24  uses to test some features of PCRE. Some Line 29  uses to test some features of PCRE. Some
29  regular expressions, in order to check that PCRE diagnoses them correctly.  regular expressions, in order to check that PCRE diagnoses them correctly.
30    
31  Philip Hazel  Philip Hazel
32  September 2009  October 2009

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

  ViewVC Help
Powered by ViewVC 1.1.5