We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390f04d commit ae245a6Copy full SHA for ae245a6
S05-match/capturing-contexts.t
@@ -4,7 +4,7 @@ use MONKEY_TYPING;
4
use Test;
5
use lib 't/spec/packages';
6
use Test::Util;
7
-plan 44;
+plan 46;
8
9
# old: L<S05/Return values from matches/"A match always returns a Match object" >
10
# L<S05/Match objects/"A match always returns a " >
@@ -172,6 +172,13 @@ plan 44;
172
isa_ok $/, Cool, "Match is Cool";
173
}
174
175
+# RT #83508
176
+{
177
+ 'x' ~~ /(y)? (z)*/;
178
+ is $0.defined, False, 'quantifier ? matching 0 values returns Nil';
179
+ is $1.defined, True, 'quantifier * matching 0 values returns empty list';
180
+}
181
+
182
done;
183
184
# vim: ft=perl6
0 commit comments