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

Function test_asarray

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

Source from the content-addressed store, hash-verified

3036
3037@pytest.mark.parametrize("asarray", [da.asarray, da.asanyarray])
3038def test_asarray(asarray):
3039 assert_eq(asarray([1, 2, 3]), np.asarray([1, 2, 3]))
3040
3041 x = asarray([1, 2, 3])
3042 assert asarray(x) is x
3043
3044 y = [x[0], 2, x[2]]
3045 assert_eq(asarray(y), x)
3046
3047
3048@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