I moved the \N test out of t/p6rules/cclass.t and made a new file for
escape tests: escape.t, currently containing tests for \s \S \w \W \d \D
\n \N
Patch file for MANIFEST and cclass.t, and new file escape.t attached.
-Dino
--
.~. Dino Morelli
/V\ email: [EMAIL PROTECTED]
/( )\ weblog: http://categorically.net/d/blog/
^^-^^ preferred distro: Debian GNU/Linux http://www.debian.org
Index: MANIFEST
===================================================================
--- MANIFEST (revision 8117)
+++ MANIFEST (working copy)
@@ -1738,6 +1738,7 @@
t/p6rules/backtrack.t []
t/p6rules/capture.t []
t/p6rules/cclass.t []
+t/p6rules/escape.t []
t/p6rules/ws.t []
t/perl/Parrot_Distribution.t [devel]
t/perl/Parrot_Docs.t [devel]
Index: t/p6rules/cclass.t
===================================================================
--- t/p6rules/cclass.t (revision 8117)
+++ t/p6rules/cclass.t (working copy)
@@ -1,8 +1,10 @@
-use Parrot::Test tests => 15;
+use strict;
+use warnings;
+use Parrot::Test tests => 14;
use Parrot::Test::PGE;
-p6rule_is ('abcdef', 'a\N+?f', 'lazy newline');
+# character class
p6rule_is ('abcdef', '<[c]>', 'character class');
p6rule_is ('abcdef', '<[dcb]>**{3}', 'repeated character class');
p6rule_is ('abcdef', '^<[a]>', 'anchored character class');
@@ -11,6 +13,7 @@
p6rule_is ('abcdef', '^<-[e]>', 'anchored character class');
p6rule_isnt('abcdef', '^<-[a]>', 'anchored character class');
+# character class range
p6rule_is ('abcdef', '<[b..d]>', 'character range');
p6rule_is ('abxxef', '<[b..d]>', 'character range');
p6rule_is ('axcxef', '<[b..d]>', 'character range');