(shape, n, axis)
| 547 | ) |
| 548 | @pytest.mark.parametrize("n", [0, 1, 2]) |
| 549 | def test_diff(shape, n, axis): |
| 550 | x = np.random.default_rng().integers(0, 10, shape) |
| 551 | a = da.from_array(x, chunks=(len(shape) * (5,))) |
| 552 | |
| 553 | assert_eq(da.diff(a, n, axis), np.diff(x, n, axis)) |
| 554 | |
| 555 | |
| 556 | @pytest.mark.parametrize("n", [0, 1, 2]) |