Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for RT #125521.
  • Loading branch information
jnthn committed Jul 9, 2015
1 parent 1cda041 commit 302b5c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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 29;
plan 30;

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

Expand Down Expand Up @@ -79,4 +79,10 @@ ok ('a b,c,d' ~~ token { \w \s \w+ % \, }), 'can combine % with backslash charac
ok '1a2a3bc' ~~ /^ \d+ % abc $/, '% only takes single atom as separator';
nok '1ab2ab3c' ~~ /^ \d+ % abc $/, '% only takes single atom as separator';

# RT #125521
{
my $m = 'AAA' ~~ /$<letter>=(A)**{3}/;
is +$m<letter>, 3, 'dynamic quantifiers interact correctly with captures';
}

# vim: ft=perl6

0 comments on commit 302b5c2

Please sign in to comment.