(self)
| 4211 | assert_equal(expected, actual) |
| 4212 | |
| 4213 | def test_coordinate_diff(self) -> None: |
| 4214 | # regression test for GH634 |
| 4215 | arr = DataArray(range(0, 20, 2), dims=["lon"], coords=[range(10)]) |
| 4216 | lon = arr.coords["lon"] |
| 4217 | expected = DataArray([1] * 9, dims=["lon"], coords=[range(1, 10)], name="lon") |
| 4218 | actual = lon.diff("lon") |
| 4219 | assert_equal(expected, actual) |
| 4220 | |
| 4221 | @pytest.mark.parametrize("offset", [-5, 0, 1, 2]) |
| 4222 | @pytest.mark.parametrize("fill_value, dtype", [(2, int), (dtypes.NA, float)]) |
nothing calls this directly
no test coverage detected