Skip to content

Commit 94873a6

Browse files
committed
Move passing TODO test out of t/run/todo.t
This test from GH #16364 was fixed by 2a05854
1 parent 01de43c commit 94873a6

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
@@ -204,12 +204,6 @@ TODO: {
204204
$_[0] = 3;
205205
}
206206

207-
@arr = ();
208-
$arr[1] = 1;
209-
foo($arr[0]);
210-
is($arr[1], 3,
211-
'Array element within array range created at correct index from subroutine @_ alias; GH 16364');
212-
213207
@arr = ();
214208
$arr[1] = 1;
215209
foo($arr[5]);

0 commit comments

Comments
 (0)