MCPcopy Create free account
hub / github.com/dask/dask / test_ones

Function test_ones

dask/array/tests/test_wrap.py:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def test_ones():
15 a = ones((10, 10), dtype="i4", chunks=(4, 4))
16 x = np.array(a)
17 assert (x == np.ones((10, 10), "i4")).all()
18
19 assert a.name.startswith("ones_like-")
20
21
22def test_size_as_list():

Callers

nothing calls this directly

Calls 2

allMethod · 0.45
onesMethod · 0.45

Tested by

no test coverage detected