Skip to content

Commit

Permalink
Add test for RT#119913
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed Jul 25, 2015
1 parent 29aa880 commit f4caecb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-array/splice.t
Expand Up @@ -45,7 +45,7 @@ my @testing =
# $@Num, Array[Num], # need way to handle named params in capture
;

plan (@testing/2 * 50) + 3 + 1 + 1 + 2;
plan (@testing/2 * 50) + 3 + 1 + 1 + 2 + 1;

for @testing -> @a, $T {
my $toNum = @a.of ~~ Num;
Expand Down Expand Up @@ -224,4 +224,11 @@ for @testing -> @a, $T {
dies-ok { @a.splice(1, 1, 'not an integer')}, '.splice is type-safe';
} #2

# RT #119913
{
my @l = 1..100;
@l.splice( 5, *, "borrowed", "blue");
is @l.join(" "), "1 2 3 4 5 borrowed blue", "Whatever splice"
} #1

# vim: ft=perl6

0 comments on commit f4caecb

Please sign in to comment.