Skip to content

Commit

Permalink
[t/spec] improve fudging of capture.t; vim modeline
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@26758 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
moritz committed May 10, 2009
1 parent 95ea915 commit 8a34569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S02-builtin_data_types/capture.t
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ plan 18;
}

# L<S06/Argument list binding/single scalar parameter marked>
#?rakudo skip 'lexically scoped subs'
#?rakudo skip 'receiving raw captures'
{
sub bar6 ($a, $b, $c) { "$a!$b!$c" }
sub foo6 (|$capture) { bar6(|$capture) }
Expand Down Expand Up @@ -101,7 +101,6 @@ plan 18;
}

# Mixing ordinary args with captures
#?rakudo todo 'named args in captures'
{
my $capture = \(:foo<bar>, :baz<grtz>);
sub foo9 ($a,$b, :$foo, :$baz) { "$a!$b!$foo!$baz" }
Expand All @@ -111,3 +110,5 @@ plan 18;
is foo9(1, 2, |$capture), "1!2!bar!grtz",
"mixing ordinary args with captures (2)";
}

# vim: ft=perl6
2 changes: 2 additions & 0 deletions S06-signature/type-capture.t
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ try {
$ok = 0;
}
ok($ok, 'can use captured type in declaration');

# vim: ft=perl6

0 comments on commit 8a34569

Please sign in to comment.