failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich
fix split cells Fixed `Segment._split_cells` issue discovered in https://github.com/Textualize/textual/issues/4996
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
.............................................F
=================================== FAILURES ===================================
____________________________ test_split_cells_mixed ____________________________
def test_split_cells_mixed() -> None:
"""Check that split cells splits on cell positions."""
# Caused https://github.com/Textualize/textual/issues/4996 in Textual
test = Segment("早乙女リリエル (CV: 徳井青)")
for position in range(1, test.cell_length):
left, right = Segment.split_cells(test, position)
> assert cell_len(left.text) == position
E AssertionError: assert 9 == 7
E + where 9 = cell_len('早乙女リ ')
E + where '早乙女リ ' = Segment('早乙女リ ').text
tests/test_segment.py:294: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 45 passed in 0.15s