Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tests for RT #111956
  • Loading branch information
usev6 committed Nov 8, 2014
1 parent 4cc6720 commit 496aa2f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion S05-metasyntax/repeat.t
Expand Up @@ -14,7 +14,7 @@ be valid perl6.

# Note: single-quotes.t tests repetition on single quoted items in regexes.

plan 24;
plan 26;

# L<S05/Bracket rationalization/The general repetition specifier is now>

Expand Down Expand Up @@ -59,4 +59,15 @@ ok ('a b,c,d' ~~ token { \w \s \w+ % \, }), 'can combine % with backslash charac
ok ( "a_0" !~~ /a ** 1_0/, 'underscore in quantifier numeral (2)' );
}

# RT #111956
#?rakudo todo 'RT #111956'
{
throws_like q[/ * /], X::Syntax::Regex::SolitaryQuantifier,
message => "Quantifier quantifies nothing",
'adequate error message when quantifier follows nothing (1)';
throws_like q[/ a+ + /], X::Syntax::Regex::SolitaryQuantifier,
message => "Quantifier quantifies nothing",
'adequate error message when quantifier follows nothing (2)';
}

# vim: ft=perl6

0 comments on commit 496aa2f

Please sign in to comment.