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

Function reduction_0d_test

dask/array/tests/test_reductions.py:64–70  ·  view source on GitHub ↗
(da_func, darr, np_func, narr)

Source from the content-addressed store, hash-verified

62
63
64def reduction_0d_test(da_func, darr, np_func, narr):
65 expected = np_func(narr)
66 actual = da_func(darr)
67
68 assert_eq(actual, expected)
69 assert_eq(da_func(narr), expected) # Ensure Dask reductions work with NumPy arrays
70 assert actual.size == 1
71
72
73def test_reductions_0D():

Callers 1

test_reductions_0DFunction · 0.85

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected