parrotcode: Basic Perl6Regex tests | |
Contents | Tests |
t/compilers/pge/perl6regex/01-regex.t -- Basic Perl6Regex tests
These tests are based on http://dev.perl.org/perl6/doc/design/syn/S05.html.
Individual tests are stored in the rx_*
files in the same directory; There is one test per line: each test consists of the following columns (separated by one *or more* tabs):
y
for a successful match,
n
for a failed one.
Otherwise the output is expected to begin and end with /
. % prove t/compilers/pge/01-regex.t
Note that while our job would be easier if we could use regular expressions in here, but we want to avoid any dependency on the thing we're testing.
Need to add in test ids, to avoid the precarious line numbering.
|