()
| 2416 | |
| 2417 | |
| 2418 | def test_encode_decode() -> None: |
| 2419 | data = xr.DataArray(["a", "b", "a\xe4"]) |
| 2420 | encoded = data.str.encode("utf-8") |
| 2421 | decoded = encoded.str.decode("utf-8") |
| 2422 | assert data.dtype == decoded.dtype |
| 2423 | assert_equal(data, decoded) |
| 2424 | |
| 2425 | |
| 2426 | def test_encode_decode_errors() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…