Skip to content

Commit

Permalink
Add test with P6 regex for RT #125021
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed Nov 18, 2017
1 parent 187c8b1 commit ae57169
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S05-metasyntax/regex.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/spec/packages/>;
use Test;
use Test::Util;

plan 49;
plan 50;

throws-like 'qr/foo/', X::Obsolete, 'qr// is gone';

Expand Down Expand Up @@ -273,4 +273,7 @@ is_run 「(try "" ~~ /. ** {NaN}/) for ^1000; print 'pass'」,
{:out('pass'), :err(''), :0status},
'wrong value for `**` quantifier does not leave behind unhandled Failures';

# RT #125021
is ~("ddd" ~~ / [ x | d ] **? 2..3 /), "dd", 'frugal match with alternation';

# vim: ft=perl6

0 comments on commit ae57169

Please sign in to comment.