MCPcopy
hub / github.com/dask/dask / test_asarray

Function test_asarray

dask/array/tests/test_array_core.py:3045–3052  ·  view source on GitHub ↗
(asarray)

Source from the content-addressed store, hash-verified

3043
3044@pytest.mark.parametrize("asarray", [da.asarray, da.asanyarray])
3045def test_asarray(asarray):
3046 assert_eq(asarray([1, 2, 3]), np.asarray([1, 2, 3]))
3047
3048 x = asarray([1, 2, 3])
3049 assert asarray(x) is x
3050
3051 y = [x[0], 2, x[2]]
3052 assert_eq(asarray(y), x)
3053
3054
3055@pytest.mark.parametrize("asarray", [da.asarray, da.asanyarray])

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
asarrayFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…