Skip to content

Commit 7a2ad38

Browse files
committed
test we actually shifted sparse array
1 parent 743b620 commit 7a2ad38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

S32-array/shift.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Shift tests
99
1010
=end description
1111

12-
plan 32;
12+
plan 33;
1313

1414
{
1515

@@ -97,6 +97,7 @@ plan 32;
9797
my @a = 1,2;
9898
@a[0]:delete;
9999
ok @a.shift === Nil, "shifting sparse array results in Nil, not failure";
100+
is @a.elems, 1, "and it actually shifted the array";
100101
}
101102

102103
# vim: syn=perl6

0 commit comments

Comments
 (0)