| 13 |
as /A that pcretest recognizes are not used in these files. The output should |
as /A that pcretest recognizes are not used in these files. The output should |
| 14 |
be identical, apart from the initial identifying banner. |
be identical, apart from the initial identifying banner. |
| 15 |
|
|
| 16 |
For testing UTF-8 features, an alternative form of perltest, called perltest8, |
The perltest script can also test UTF-8 features. It works as is for Perl 5.8 |
| 17 |
is supplied. This requires Perl 5.6 or higher. It recognizes the special |
or higher. It recognizes the special modifier /8 that pcretest uses to invoke |
| 18 |
modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput5 |
UTF-8 functionality. The testinput5 file can be fed to perltest to run UTF-8 |
| 19 |
file can be fed to perltest8. |
tests. |
| 20 |
|
|
| 21 |
|
For Perl 5.6, perltest won't work unmodified for the UTF-8 tests. You need to |
| 22 |
|
uncomment the "use utf8" lines that it contains. It is best to do this on a |
| 23 |
|
copy of the script, because for non-UTF-8 tests, these lines should remain |
| 24 |
|
commented out. |
| 25 |
|
|
| 26 |
The testinput2 and testinput4 files are not suitable for feeding to perltest, |
The testinput2 and testinput4 files are not suitable for feeding to perltest, |
| 27 |
since they do make use of the special upper case modifiers and escapes that |
since they do make use of the special upper case modifiers and escapes that |
| 31 |
to Perl. |
to Perl. |
| 32 |
|
|
| 33 |
Philip Hazel <ph10@cam.ac.uk> |
Philip Hazel <ph10@cam.ac.uk> |
| 34 |
August 2000 |
August 2002 |