(dtype)
| 2177 | |
| 2178 | |
| 2179 | def test_slice_broadcast(dtype) -> None: |
| 2180 | arr = xr.DataArray(["aafootwo", "aabartwo", "aabazqux"]).astype(dtype) |
| 2181 | start = xr.DataArray([1, 2, 3]) |
| 2182 | stop = 5 |
| 2183 | |
| 2184 | result = arr.str.slice(start=start, stop=stop) |
| 2185 | exp = xr.DataArray(["afoo", "bar", "az"]).astype(dtype) |
| 2186 | assert result.dtype == exp.dtype |
| 2187 | assert_equal(result, exp) |
| 2188 | |
| 2189 | |
| 2190 | def test_slice_replace(dtype) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…