(arr, func)
| 93 | ], |
| 94 | ) |
| 95 | def test_reductions_toplevel(arr, func): |
| 96 | # var and std need __array_function__ |
| 97 | result = getattr(da, func)(arr, axis=0) |
| 98 | expected = getattr(np, func)(arr.compute(), axis=0) |
| 99 | assert_eq(result, expected) |
| 100 | |
| 101 | |
| 102 | def test_from_array(): |