Check that split cells splits on cell positions with all double width characters.
()
| 327 | |
| 328 | |
| 329 | def test_split_cells_doubles() -> None: |
| 330 | """Check that split cells splits on cell positions with all double width characters.""" |
| 331 | test = Segment("早" * 20) |
| 332 | for position in range(1, test.cell_length): |
| 333 | left, right = Segment.split_cells(test, position) |
| 334 | assert cell_len(left.text) == position |
| 335 | assert cell_len(right.text) == test.cell_length - position |
| 336 | |
| 337 | |
| 338 | def test_split_cells_single() -> None: |
nothing calls this directly
no test coverage detected