(shape, n, axis)
| 48 | ) |
| 49 | @pytest.mark.parametrize("n", [0, 1, 2]) |
| 50 | def test_diff(shape, n, axis): |
| 51 | x = cupy.random.default_rng().integers(0, 10, shape) |
| 52 | a = da.from_array(x, chunks=(len(shape) * (5,))) |
| 53 | |
| 54 | assert_eq(da.diff(a, n, axis), cupy.diff(x, n, axis)) |
| 55 | |
| 56 | |
| 57 | @pytest.mark.parametrize("n", [0, 1, 2]) |