Skip to content

Commit

Permalink
update hyphen-in-char-class test to match current spec
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 17, 2011
1 parent 12561b6 commit 979e069
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions S05-mass/rx.t
Expand Up @@ -326,8 +326,7 @@ ok 'bbccdd' !~~ /<-[b..d]>/, 'negated character range';
#### <-[d..b]> bbccdd /parse error/ illegal character range
ok ('bbccdd' ~~ /<-[d..b]>/) && matchcheck($/, q/parse error/), 'illegal character range';

#### <[-]> ab-def /parse error/ unescaped hyphen
eval_dies_ok '/<[-]>/', 'unescaped hyphen';
ok '-' ~~ /<[-]>/, 'unescaped hyphen is fine on its own';

#### <[\-]> ab-def y escaped hyphen
ok 'ab-def' ~~ /<[\-]>/, 'escaped hyphen';
Expand Down

0 comments on commit 979e069

Please sign in to comment.