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

Function test_slice_array_null_dimension

dask/array/tests/test_slicing.py:1053–1056  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1051
1052
1053def test_slice_array_null_dimension():
1054 array = da.from_array(np.zeros((3, 0)))
1055 expected = np.zeros((3, 0))[[0]]
1056 assert_eq(array[[0]], expected)
1057
1058
1059def test_take_sorted_indexer():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
zerosMethod · 0.45

Tested by

no test coverage detected