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

Function rnd_test

dask/array/tests/test_random.py:217–220  ·  view source on GitHub ↗
(func, *args, **kwargs)

Source from the content-addressed store, hash-verified

215@pytest.mark.parametrize("sz", [None, 5, (2, 2)], ids=type)
216def test_random_all_with_class_methods(generator_class, sz):
217 def rnd_test(func, *args, **kwargs):
218 a = func(*args, **kwargs)
219 assert type(a._meta) == np.ndarray
220 assert_eq(a, a) # Check that _meta and computed arrays match types
221
222 rnd_test(generator_class().beta, 1, 2, size=sz, chunks=3)
223 rnd_test(generator_class().binomial, 10, 0.5, size=sz, chunks=3)

Callers 1

Calls 2

assert_eqFunction · 0.90
funcFunction · 0.70

Tested by

no test coverage detected