Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Oct 7, 2018
1 parent ef369a4 commit 4c3778a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S06-signature/slurpy-and-interpolation.t
Expand Up @@ -20,18 +20,18 @@ is($val, 'a: 1 b: 2', '... slurpy args flattening and matching parameters');

# try to flatten the args for the anon sub to match

sub invoke2 ($f, *@args) { $f(|@args) };
is(invoke2(sub ($a, $b) { return "a: $a b: $b"}, 1, 2), 'a: 1 b: 2',
sub invoke2 ($f, *@args) { $f(|@args) };
is(invoke2(sub ($a, $b) { return "a: $a b: $b"}, 1, 2), 'a: 1 b: 2',
'... slurpy args flattening and matching parameters');

dies-ok {
invoke2(sub ($a, $b) { return "a: $a b: $b"}, 1, 2, 3);
}, '... slurpy args flattening and not matching because of too many parameters';
}, '... slurpy args flattening and not matching because of too many parameters';

# used to be a Rakudo regression, RT #62730

{
sub f1(*%h) { %h.perl };
sub f1(*%h) { %h.perl };
sub f2(*%h) { f1(|%h) };
lives-ok { f2( :a(1) ) },
'Can interpolate hashes into slurpy named parameters';
Expand Down

0 comments on commit 4c3778a

Please sign in to comment.