Skip to content

Commit 685e548

Browse files
committed
only test what we're supposed to be testing
1 parent 0957cce commit 685e548

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

S04-statements/for.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,12 @@ eval-dies-ok('for(0..5) { }','keyword needs at least one whitespace after it');
383383
#diag ">$str<";
384384
}
385385

386+
# RT #63994
386387
#?niecza 2 todo 'NYI'
387388
{
388389
my $str = '';
389390
for 1..5 -> $x, $y? {
390-
$str ~= " " ~ $x*$y;
391+
$str ~= " " ~ $x * ($y//0);
391392
}
392393
is $str, " 2 12 0";
393394
}

0 commit comments

Comments
 (0)