Navigation Menu

Skip to content

Commit

Permalink
Add a test for slurpy/named interaction.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Aug 29, 2012
1 parent 602bf23 commit 017a3d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/nqp/37-slurpy.t
Expand Up @@ -2,7 +2,7 @@

# slurpy args

plan(5);
plan(6);

sub slurpy_pos(*@pos) {
for @pos {
Expand All @@ -18,3 +18,9 @@ sub slurpy_named(*%named) {
}

slurpy_named(:pivo("ok 4"), :slanina("ok 5"));

sub named_and_slurpy(:$x, *@foo) {
say($x);
};

named_and_slurpy(1, :x('ok 6'));

0 comments on commit 017a3d3

Please sign in to comment.