Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix and enable test for passing hashes to Python methods
  • Loading branch information
niner committed Oct 14, 2014
1 parent 8b44f1c commit 3f06038
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/call.t
Expand Up @@ -3,7 +3,7 @@
use v6;
use Inline::Python;

say "1..10";
say "1..11";

my $py = Inline::Python.new();
$py.run('
Expand Down Expand Up @@ -50,7 +50,7 @@ def test_hash(h):
and "b" in h
and h["a"] == 2
and isinstance(h["b"], types.DictType)
and isinstance(h["b"]["c"], types.ArrayType)
and isinstance(h["b"]["c"], list)
and len(h["b"]["c"]) == 2
and h["b"]["c"][0] == 4
and h["b"]["c"][1] == 3
Expand Down Expand Up @@ -131,14 +131,14 @@ else {
say "not ok 10 - Any converted to undef";
}

if False {
if ($py.call('__main__', 'test_hash', {a => 2, b => {c => [4, 3]}}) == 1) {
say "ok 11 - Passing hashes to Python";
}
else {
say "not ok 11 - Passing hashes to Python";
}

if False {
if ($py.call('__main__', 'test_foo', $py.call('__main__', 'Foo', 6)) == 6) {
say "ok 12 - Passing Python objects back from Perl 6";
}
Expand Down

0 comments on commit 3f06038

Please sign in to comment.