()
| 33 | |
| 34 | |
| 35 | def test_min_max_round_funcs(): |
| 36 | # Regression test for gh-5031 |
| 37 | image = da.from_array(np.array([[0, 1], [1, 2]]), chunks=(1, 2)) |
| 38 | # These use __array_function__ (and min/max/round are aliased, |
| 39 | # to amin/amax/round_ in numpy) |
| 40 | assert int(np.min(image)) == 0 |
| 41 | assert int(np.max(image)) == 2 |
| 42 | assert np.round(image)[1, 1] == 2 |