Skip to content

Commit ec1e1cf

Browse files
authored
Merge pull request #304 from skids/rt124247
Add test for RT#124247
2 parents 0cf960c + 3ef8bb0 commit ec1e1cf

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

S19-command-line-options/03-dash-p.t

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Test;
66

77
use Test::Util;
88

9-
plan 2;
9+
plan 3;
1010

1111
=begin pod
1212
@@ -45,3 +45,16 @@ is_run(
4545
'-p works in combination with s:g///',
4646
:compiler-args['-p'],
4747
);
48+
49+
# RT #124247
50+
#?rakudo.jvm skip 'hangs, RT #131393'
51+
is_run(
52+
's[(\d)] = "{$0 * 10}"', # program
53+
"5 breads and 2 fishes\n", # input
54+
{
55+
out => "50 breads and 2 fishes\n", # expected
56+
},
57+
'-p -e using $0 in {} in "" in rhs in assign to s[] form subst',
58+
:compiler-args['-p'],
59+
);
60+

0 commit comments

Comments
 (0)