Skip to content

Commit

Permalink
Make tests Julia 1.0-compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 17, 2018
1 parent 41cb505 commit e297089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def add(a, b):
self.assertTrue(all(x == y for x, y in zip([11, 11, 11],
julia.map(lambda x: x + 1,
array.array('I', [10, 10, 10])))))
self.assertEqual(6, julia.foldr(add, 0, [1, 2, 3]))
self.assertEqual(6, julia.reduce(add, [1, 2, 3]))

def test_call_python_with_julia_args(self):
self.assertEqual(6, sum(julia.eval('(1, 2, 3)')))
Expand Down Expand Up @@ -97,8 +97,8 @@ def test_from_import_non_existing_julia_name(self):
def test_julia_module_bang(self):
from julia import Base
xs = [1, 2, 3]
ys = Base.scale_b(xs[:], 2)
assert all(x * 2 == y for x, y in zip(xs, ys))
ys = Base.fill_b(xs[:], 10)
assert all(y == 10 for y in ys)

def test_import_julia_submodule(self):
from julia.Base import Enums
Expand Down

0 comments on commit e297089

Please sign in to comment.