Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test for RT #76676, indexing an array with a range clips to the exisi…
…ting elements
  • Loading branch information
moritz committed Oct 2, 2011
1 parent 9fb628f commit fe02f96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S02-types/array.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 88;
plan 89;

#L<S02/Mutable types/Array>

Expand Down Expand Up @@ -204,6 +204,11 @@ my @array2 = ("test", 1, Mu);
lvalue in assignment is then lvalue to end-indexed slice as rvalue";
}

# RT #76676
{
is ~<a b>.[^10], 'a b', 'Range subscript as rvalues clip to existing elems';
}

# This test may seem overly simplistic, but it was actually a bug in PIL2JS, so
# why not write a test for it so other backends can benefit of it, too? :)
{
Expand Down

0 comments on commit fe02f96

Please sign in to comment.