Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[t] We now pass 41-flat.t.
  • Loading branch information
jnthn committed Nov 21, 2010
1 parent 3a28d12 commit 0fd99ef
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions t/nqp/41-flat.t
@@ -0,0 +1,26 @@
#!./parrot nqp.pbc

# flattened arguments

plan(6);

sub xyz($x, $y, $z) {
ok( $x == 7, 'first argument');
ok( $y == 8, 'second argument');
ok( $z == 9, 'third argument');
}

sub ijk(:$i, :$j, :$k) {
ok( $i == 1, 'first named argument');
ok( $j == 2, 'second named argument');
ok( $k == 3, 'third named argument');
}

my @a := [7,8,9];
xyz(|@a);

my %a;
%a<i> := 1;
%a<j> := 2;
%a<k> := 3;
ijk(|%a);

0 comments on commit 0fd99ef

Please sign in to comment.