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

Function test_size

dask/array/tests/test_array_core.py:2815–2818  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2813
2814
2815def test_size():
2816 x = da.ones((10, 2), chunks=(3, 1))
2817 assert x.size == np.array(x).size
2818 assert isinstance(x.size, int)
2819
2820
2821def test_nbytes():

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected