MCPcopy
hub / github.com/dask/dask / test_tile_zero_reps

Function test_tile_zero_reps

dask/array/tests/test_creation.py:783–787  ·  view source on GitHub ↗
(shape, chunks, reps)

Source from the content-addressed store, hash-verified

781@pytest.mark.parametrize("shape, chunks", [((10,), (1,)), ((10, 11, 13), (4, 5, 3))])
782@pytest.mark.parametrize("reps", [0, (0,), (2, 0), (0, 3, 0, 4)])
783def test_tile_zero_reps(shape, chunks, reps):
784 x = np.random.random(shape)
785 d = da.from_array(x, chunks=chunks)
786
787 assert_eq(np.tile(x, reps), da.tile(d, reps))
788
789
790@pytest.mark.parametrize("shape, chunks", [((1, 1, 0), (1, 1, 0)), ((2, 0), (1, 0))])

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…