Skip to content

Commit 954d32b

Browse files
committed
Add test for GH #2901
rakudo/rakudo#2901
1 parent b5c4ed2 commit 954d32b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

S05-metasyntax/regex.t

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use Test;
33
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
44
use Test::Util;
55

6-
plan 51;
6+
plan 52;
77

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

@@ -283,4 +283,7 @@ is ~("ddd" ~~ / [ x | d ] **? 2..3 /), "dd", 'frugal match with alternation';
283283
is_run /a/; print "pass", {:out<pass>, :err(''), :0status},
284284
'/a/ in sink context in in uppermost scope does not explode';
285285

286+
# https://github.com/rakudo/rakudo/issues/2901
287+
is 'a' ~~ / a & a /, 'a', 'Unescaped & works as conjunction';
288+
286289
# vim: ft=perl6

0 commit comments

Comments
 (0)