Hi, I've tried to add some tests to the rx_subrule with some extras sensitive cases, but i'm failling two tests that i think that should pass. I have attached a patch that adds new tests. The ones requiring attention are the ones that fail. Not sure if i'm doing anything wrong but my guess would be that couple of failling tests should pass ok.
Files affected: * t/compilers/pge/p6regex/rx_subrules Best regards, ./smash
Index: t/compilers/pge/p6regex/rx_subrules =================================================================== --- t/compilers/pge/p6regex/rx_subrules (revision 15777) +++ t/compilers/pge/p6regex/rx_subrules (working copy) @@ -54,7 +54,19 @@ <ident> 2+3 ab2 /mob<ident>: <ab2 @ 4>/ capturing builtin <ident> <name> ab::cd::x3::42 /mob<name>: <ab::cd::x3 @ 0>/ capturing builtin <name> <+alnum+[_]> ident_1 y union of character classes +<+[ab]+[\-]>+ aaa-bbb y enumerated character classes +<+ [ a b ]+[\-]>+ aaa-bbb y whitespace is ignored within square brackets and after the initial + +<+[ab]+[\-]>+ -ab- y enumerated character classes variant +<+[ab]+[\-]>+ ---- y enumerated character classes variant +<+[ab]+[\-]>+ - y enumerated character classes variant +<-[ab]+[cd]>+ ccdd y enumerated character classes variant +<-[ab]+[cd]>+ caad n enumerated character classes variant +<- [ a b ]+[cd]>+ ccdd y whitespace is ignored within square brackets and after the initial - ^<-upper>dent ident_1 y inverted character class ^<-upper>dent Ident_1 n inverted character class +<+alpha-[Jj]>+ abc y character class with no j +<alpha-[Jj]>+ abc y character class with no j and no leading + +<+ alpha - [ Jj ]> abc y character class with no j with ws +<+alpha-[Jj]>+ aJc n character class with no j fail ## vim: noexpandtab tabstop=4 shiftwidth=4