Skip to content

Commit

Permalink
Merge pull request #411 from jstuder-gh/empty_neg_cclass
Browse files Browse the repository at this point in the history
Rakudo Issue 1622: Test empty negative char class doesn't fail
  • Loading branch information
AlexDaniel committed Apr 7, 2018
2 parents e7047f1 + 7ef189a commit e784cd0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S05-mass/stdrules.t
Expand Up @@ -14,7 +14,7 @@ be valid perl6.

# L<S05/Extensible metasyntax (C<< <...> >>)/"The special named assertions include">

plan 191;
plan 193;


ok("abc1_2" ~~ m/^ <ident> $/, '<ident>');
Expand Down Expand Up @@ -324,4 +324,10 @@ ok 'aac' ~~ /^a <?same>/, '<?same> succeeds between two of the same character';
ok 'abc' ~~ /^a <!same>/, '<!same> succeeds between two different characters';
ok 'abb' ~~ /<?same>/, '<?same> searches until it matches';

# [Github Issue 1622](https://github.com/rakudo/rakudo/issues/1622)
{
cmp-ok 'abc', '!~~', /a <-[]>/, '<-[]> (negative char class) fails like <!>';
cmp-ok '', '!~~', /<-[]>/, '<-[]> (negative char class) fails like <!> (empty str)';
}

# vim: ft=perl6

0 comments on commit e784cd0

Please sign in to comment.