Skip to content

Commit

Permalink
Add tests for fix in 2d56751
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 17, 2016
1 parent ca3eb95 commit a932240
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S09-multidim/methods.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 80;
plan 82;

# Object array
{
Expand Down Expand Up @@ -132,3 +132,11 @@ plan 80;
is @arr.perl, 'array[int].new(:shape(2, 2), [42, 43], [44, 45])',
'.perl retains structure (native)';
}

{
my @a[5] = ^5;
@a = @a.rotate;
is @a, "1 2 3 4 0", 'can we assign after a .rotate?';
@a = @a.reverse;
is @a, "0 4 3 2 1", 'can we assign after a .reverse?';
}

0 comments on commit a932240

Please sign in to comment.