pyodide/test/test_numpy.py

9 lines
258 B
Python
Raw Normal View History

2018-03-30 14:51:13 +00:00
def test_numpy(selenium):
2018-05-04 17:09:32 +00:00
selenium.load_package("numpy")
2018-03-30 14:51:13 +00:00
selenium.run("import numpy")
x = selenium.run("numpy.zeros((32, 64))")
assert len(x) == 32
assert all(len(y) == 64 for y in x)
for y in x:
assert all(z == 0 for z in y)