Permalink
Browse files

[t/spec] Fix and unfudge a colonpair test.

git-svn-id: http://svn.pugscode.org/pugs@24977 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent ebb8b24 commit 41281a2dc7e400a363d821d9b37ad43fa12eb114 jnthn committed Jan 20, 2009
Showing with 2 additions and 3 deletions.
  1. +2 −3 S06-signature/named-parameters.t
@@ -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';
}

0 comments on commit 41281a2

Please sign in to comment.