Skip to content

Commit 114c9b4

Browse files
khwilliamsonkarenetheridge
authored andcommitted
Move passing TODO test out of t/run/todo.t
This test from GH #16364 was fixed by 2a05854
1 parent 25035a5 commit 114c9b4

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

t/op/array.t

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ BEGIN {
66
set_up_inc('.', '../lib');
77
}
88

9-
plan (197);
9+
plan (198);
1010

1111
#
1212
# @foo, @bar, and @ary are also used from tie-stdarray after tie-ing them
@@ -719,3 +719,18 @@ fresh_perl_is('my @x;$x[0] = 1;shift @x;$x[22] = 1;$x[25] = 1;','',
719719
$y = @x[2, 3, @i];
720720
is $y, 'd', 'Empty array final element in array slice in scalar context';
721721
}
722+
723+
#GH #16364
724+
{
725+
my @arr;
726+
my sub foo {
727+
unshift @arr, 7;
728+
$_[0] = 3;
729+
}
730+
731+
@arr = ();
732+
$arr[1] = 1;
733+
foo($arr[0]);
734+
is($arr[1], 3,
735+
'Array element within array range created at correct index from subroutine @_ alias; GH 16364');
736+
}

t/run/todo.t

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,6 @@ TODO: {
227227
$_[0] = 3;
228228
}
229229

230-
@arr = ();
231-
$arr[1] = 1;
232-
foo($arr[0]);
233-
is($arr[1], 3,
234-
'Array element within array range created at correct index from subroutine @_ alias; GH 16364');
235-
236230
@arr = ();
237231
$arr[1] = 1;
238232
foo($arr[5]);

0 commit comments

Comments
 (0)