Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unfudge multi-dim slice assignment on Rakudo
  • Loading branch information
Mouq committed Aug 8, 2014
1 parent d870e42 commit 5f72f88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions S02-types/multi_dimensional_array.t
Expand Up @@ -148,10 +148,8 @@ is @multi3[1; 2; 1,2], (<satellites falcon-9s>), '[1 ; 2 ; 1,2]';
is @multi3[0,1; 0,2; 1,2], (<fuzzy-cats angry-cats squirrels angry-squirrels SUVs tanks satellites falcon-9s>), '[0,1 ; 0,2 ; 1,2]';

ok (@multi3[0;*;1] = <cute-cats cute-dogs cute-squirrels ignored-value>), 'can assign to multi-dim slice';
#?rakudo todo 'Multi-dimensional slice assignment'
is @multi3[0;*;1], (<cute-cats cute-dogs cute-squirrels>), 'overall assignment worked';
is @multi3[0;0;1], (<cute-cats>), 'assigned the right thing to [0;0;1]';
#?rakudo 2 todo 'Multi-dimensional slice assignment'
is @multi3[0;1;1], (<cute-dogs>), 'assigned the right thing to [0;1;1]';
is @multi3[0;2;1], (<cute-squirrels>), 'assigned the right thing to [0;2;1]';

Expand Down

0 comments on commit 5f72f88

Please sign in to comment.