()
| 185 | |
| 186 | |
| 187 | def test_moveaxis_rollaxis_numpy_api(): |
| 188 | a = da.random.default_rng().random((4, 4, 4), chunks=2) |
| 189 | result = np.moveaxis(a, 2, 0) |
| 190 | assert isinstance(result, da.Array) |
| 191 | assert_eq(result, np.moveaxis(a.compute(), 2, 0)) |
| 192 | |
| 193 | result = np.rollaxis(a, 2, 0) |
| 194 | assert isinstance(result, da.Array) |
| 195 | assert_eq(result, np.rollaxis(a.compute(), 2, 0)) |
| 196 | |
| 197 | |
| 198 | @pytest.mark.parametrize( |