/[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 691 by ph10, Sun Sep 11 14:31:21 2011 UTC revision 871 by ph10, Sat Jan 14 16:20:44 2012 UTC
# Line 14  other pcretest modifiers that are either Line 14  other pcretest modifiers that are either
14    /W   ignored    /W   ignored
15    /S   ignored    /S   ignored
16    /SS  ignored    /SS  ignored
17      /Y   ignored
18    
19  The data lines are processed as Perl double-quoted strings, so if they contain  The pcretest \Y escape in data lines is removed before matching. The data lines
20  " $ or @ characters, these have to be escaped. For this reason, all such  are processed as Perl double-quoted strings, so if they contain " $ or @
21  characters in testinput1, testinput4, testinput6, and testinput11 are escaped  characters, these have to be escaped. For this reason, all such characters in
22  so that they can be used for perltest as well as for pcretest. The pcretest \Y  the Perl-compatible testinput1 file are escaped so that they can be used for
23  escape in data lines is removed.  perltest as well as for pcretest. The special upper case pattern modifiers such
24    as /A that pcretest recognizes, and its special data line escapes, are not used
25  The special upper case pattern modifiers such as /A that pcretest recognizes,  in the Perl-compatible test file. The output should be identical, apart from
26  and its special data line escapes, are not used in these files. The output  the initial identifying banner.
 should be identical, apart from the initial identifying banner.  
27    
28  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
29  modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4  modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4
30  and testinput6 files 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.
31  However, it is necessary to add "use utf8;" to the script to make this work  However, it is necessary to add "use utf8; require Encode" to the script to
32  correctly.  make this work correctly. I have not managed to find a way to handle this
33    automatically.
 The testinput11 file contains tests that use features of Perl 5.10, so does not  
 work with Perl 5.8.  
34    
35  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
36  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
37  uses to test some features of PCRE. Some of these files also contains malformed  uses to test certain features of PCRE. Some of these files also contain
38  regular expressions, in order to check that PCRE diagnoses them correctly.  malformed regular expressions, in order to check that PCRE diagnoses them
39    correctly.
40    
41  Philip Hazel  Philip Hazel
42  August 2011  January 2012

Legend:
Removed from v.691  
changed lines
  Added in v.871

  ViewVC Help
Powered by ViewVC 1.1.5