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

Function test_multi_insert

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

Source from the content-addressed store, hash-verified

2433
2434
2435def test_multi_insert():
2436 z = np.random.default_rng().integers(10, size=(1, 2))
2437 c = da.from_array(z, chunks=(1, 2))
2438 assert_eq(
2439 np.insert(np.insert(z, [0, 1], -1, axis=0), [1], -1, axis=1),
2440 da.insert(da.insert(c, [0, 1], -1, axis=0), [1], -1, axis=1),
2441 )
2442
2443
2444def test_delete():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
integersMethod · 0.45

Tested by

no test coverage detected