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

Function test_empty_slice

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

Source from the content-addressed store, hash-verified

467
468
469def test_empty_slice():
470 x = da.ones((5, 5), chunks=(2, 2), dtype="i4")
471 y = x[:0]
472
473 assert_eq(y, np.ones((5, 5), dtype="i4")[:0])
474
475
476def test_multiple_list_slicing():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
onesMethod · 0.45

Tested by

no test coverage detected