Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace deprecated is_deeply by is-deeply in tests
  • Loading branch information
niner committed Jun 8, 2015
1 parent be0a292 commit 5865f28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion t/p6_to_py.t
Expand Up @@ -16,7 +16,7 @@ class Foo {
}

for ('abcö', Buf.new('äbc'.encode('latin-1')), 24, 2.4.Num, [1, 2], { a => 1, b => 2}, Any, Foo.new) -> $obj {
is_deeply $py.call('__main__', 'identity', $obj), $obj, "Can round-trip " ~ $obj.^name;
is-deeply $py.call('__main__', 'identity', $obj), $obj, "Can round-trip " ~ $obj.^name;
}

$py.run(q/
Expand Down
10 changes: 5 additions & 5 deletions t/py_to_p6.t
Expand Up @@ -9,11 +9,11 @@ my $py = Inline::Python.new();
is $py.run('5', :eval), 5;
is $py.run('5.5', :eval), 5.5;
is $py.run('u"Python"', :eval), 'Python';
is_deeply $py.run('[1, 2]', :eval), [1, 2];
is_deeply $py.run('[1, [2, 3]]', :eval), [1, [2, 3]];
is_deeply $py.run('{u"a": 1, u"b": 2}', :eval), {a => 1, b => 2};
is_deeply $py.run('{u"a": 1, u"b": {u"c": 3}}', :eval), {a => 1, b => {c => 3}};
is_deeply $py.run('[1, {u"b": {u"c": 3}}]', :eval), [1, {b => {c => 3}}];
is-deeply $py.run('[1, 2]', :eval), [1, 2];
is-deeply $py.run('[1, [2, 3]]', :eval), [1, [2, 3]];
is-deeply $py.run('{u"a": 1, u"b": 2}', :eval), {a => 1, b => 2};
is-deeply $py.run('{u"a": 1, u"b": {u"c": 3}}', :eval), {a => 1, b => {c => 3}};
is-deeply $py.run('[1, {u"b": {u"c": 3}}]', :eval), [1, {b => {c => 3}}];
ok $py.run('None', :eval) === Any, 'py None maps to p6 Any';

is $py.run('
Expand Down

0 comments on commit 5865f28

Please sign in to comment.