MCPcopy
hub / github.com/dask/dask / test_pad_0_width

Function test_pad_0_width

dask/array/tests/test_creation.py:822–831  ·  view source on GitHub ↗
(shape, chunks, pad_width, mode, kwargs)

Source from the content-addressed store, hash-verified

820 ],
821)
822def test_pad_0_width(shape, chunks, pad_width, mode, kwargs):
823 np_a = np.random.random(shape)
824 da_a = da.from_array(np_a, chunks=chunks)
825
826 np_r = np.pad(np_a, pad_width, mode, **kwargs)
827 da_r = da.pad(da_a, pad_width, mode, **kwargs)
828
829 assert da_r is da_a
830
831 assert_eq(np_r, da_r)
832
833
834@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
randomMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…