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

Function test_array

dask/array/tests/test_routines.py:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def test_array():
26 x = np.ones(5, dtype="i4")
27 d = da.ones(5, chunks=3, dtype="i4")
28 assert_eq(da.array(d, ndmin=3, dtype="i8"), np.array(x, ndmin=3, dtype="i8"))
29
30 # regression #1847 this shall not raise an exception.
31 x = da.ones((100, 3), chunks=10)
32 y = da.array(x)
33 assert isinstance(y, da.Array)
34
35
36def test_array_return_type():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected