Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for GH #40
This points out an issue where keyword arguments aren't being passed
to Perl 5
  • Loading branch information
hoelzro committed Aug 26, 2015
1 parent 64826f1 commit 203cabc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/call_hash.t
@@ -0,0 +1,12 @@
use v6;

use Test;

use Inline::Perl5;

use lib:from<Perl5> <t/lib>;
use TakesHash:from<Perl5>;

is(TakesHash.give_hash(:foo<bar>), 'bar');

done;
12 changes: 12 additions & 0 deletions t/lib/TakesHash.pm
@@ -0,0 +1,12 @@
package TakesHash;

use strict;
use warnings;

sub give_hash {
my ($class, %args) = @_;

return $args{foo};
}

1;

0 comments on commit 203cabc

Please sign in to comment.