()
| 57 | |
| 58 | @requires_dask |
| 59 | def test_dask() -> None: |
| 60 | import dask.array as da |
| 61 | |
| 62 | arr = da.from_array(["a", "b", "c"], chunks=-1) |
| 63 | xarr = xr.DataArray(arr) |
| 64 | |
| 65 | result = xarr.str.len().compute() |
| 66 | expected = xr.DataArray([1, 1, 1]) |
| 67 | assert result.dtype == expected.dtype |
| 68 | assert_equal(result, expected) |
| 69 | |
| 70 | |
| 71 | def test_count(dtype) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…