(original, expected_char_dim_name)
| 155 | ], |
| 156 | ) |
| 157 | def test_CharacterArrayCoder_char_dim_name(original, expected_char_dim_name) -> None: |
| 158 | coder = strings.CharacterArrayCoder() |
| 159 | encoded = coder.encode(original) |
| 160 | roundtripped = coder.decode(encoded) |
| 161 | assert encoded.dims[-1] == expected_char_dim_name |
| 162 | assert roundtripped.encoding["char_dim_name"] == expected_char_dim_name |
| 163 | assert roundtripped.dims[-1] == original.dims[-1] |
| 164 | |
| 165 | |
| 166 | @pytest.mark.parametrize( |