Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #83508
  • Loading branch information
usev6 committed Oct 14, 2014
1 parent 390f04d commit ae245a6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S05-match/capturing-contexts.t
Expand Up @@ -4,7 +4,7 @@ use MONKEY_TYPING;
use Test;
use lib 't/spec/packages';
use Test::Util;
plan 44;
plan 46;

# old: L<S05/Return values from matches/"A match always returns a Match object" >
# L<S05/Match objects/"A match always returns a " >
Expand Down Expand Up @@ -172,6 +172,13 @@ plan 44;
isa_ok $/, Cool, "Match is Cool";
}

# RT #83508
{
'x' ~~ /(y)? (z)*/;
is $0.defined, False, 'quantifier ? matching 0 values returns Nil';
is $1.defined, True, 'quantifier * matching 0 values returns empty list';
}

done;

# vim: ft=perl6

0 comments on commit ae245a6

Please sign in to comment.