Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added tests for #120383
  • Loading branch information
lizmat committed Oct 28, 2013
1 parent 3e12598 commit cc153df
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S09-subscript/slice.t
Expand Up @@ -10,7 +10,7 @@ Testing array slices.
=end pod

plan 24;
plan 26;

{ my @array = (3,7,9,11);

Expand Down Expand Up @@ -86,4 +86,13 @@ plan 24;
is @a3.join('|'), '4|5', 'can use 1..^@a for subscripting';
}

# RT #120383
#?pugs skip 'unexpected ['
#?rakudo skip '#120383'
{
my @a = 42..50;
is @a .= [1,2], (43,44), 'did we return right slice';;
is @a, (43,44), 'did we assign slice ok';
}

# vim: ft=perl6

0 comments on commit cc153df

Please sign in to comment.