pyodide/test/test_numpy.py

8 lines
223 B
Python
Raw Normal View History

2018-03-30 14:51:13 +00:00
def test_numpy(selenium):
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)