(da_func, darr, np_func, narr)
| 62 | |
| 63 | |
| 64 | def 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 | |
| 73 | def test_reductions_0D(): |
no test coverage detected