Skip to content

Commit

Permalink
[t/spec] Fix and unfudge a colonpair test.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@24977 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
jnthn committed Jan 20, 2009
1 parent ebb8b24 commit 41281a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions S06-signature/named-parameters.t
Expand Up @@ -29,9 +29,8 @@ plan 69;
return $w;
}
is c(w => 3), 3, 'Named argument passes an integer, not a Pair';
my $x = 5;
#?rakudo 2 skip 'colonpair calling'
is c(:$x), 3, 'can use :$x colonpair syntax to call named arg';
my $w = 5;
is c(:$w), 5, 'can use :$x colonpair syntax to call named arg';
eval_dies_ok 'my $y; c(:$y)', 'colonpair with wrong variable name dies';
}

Expand Down

0 comments on commit 41281a2

Please sign in to comment.