Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test for reversed character ranges.
  • Loading branch information
jnthn committed Nov 20, 2011
1 parent 1ec9f11 commit 1d2cac2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S05-mass/rx.t
Expand Up @@ -322,9 +322,8 @@ ok 'abcdef' ~~ /<- [b..d]>/, 'negated allows ws';
#### <-[b..d]> bbccdd n negated character range
ok 'bbccdd' !~~ /<-[b..d]>/, 'negated character range';

# todo :pge<reversed character range>
#### <-[d..b]> bbccdd /parse error/ illegal character range
ok ('bbccdd' ~~ /<-[d..b]>/) && matchcheck($/, q/parse error/), 'illegal character range';
#### <-[d..b]> dies
eval_dies_ok '/<-[d..b]>/', 'illegal character range';

ok '-' ~~ /<[-]>/, 'unescaped hyphen is fine on its own';

Expand Down

0 comments on commit 1d2cac2

Please sign in to comment.