Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test RT #108508, repeated slicing with 1..^@a

  • Loading branch information...
commit 8cd7b7fc1888ea9ac6f691d644dcfddabdbaf2a8 1 parent 16f1074
@moritz moritz authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 S09-subscript/slice.t
View
10 S09-subscript/slice.t
@@ -10,7 +10,7 @@ Testing array slices.
=end pod
-plan 23;
+plan 24;
{ my @array = (3,7,9,11);
@@ -78,4 +78,12 @@ plan 23;
'slice with one element specified by variables';
}
+# RT #108508
+{
+ my @a1 = 1,2,3,4, 5;
+ my @a2 = @a1[2 ..^ @a1];
+ my @a3 = @a2[1..^ @a2];
+ is @a3.join('|'), '4|5', 'can use 1..^@a for subscripting';
+}
+
# vim: ft=perl6
Please sign in to comment.
Something went wrong with that request. Please try again.