← baseline_full_v2

rich_3506

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich

Task input

fix split cells

Fixed `Segment._split_cells` issue discovered in https://github.com/Textualize/textual/issues/4996

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
.............................................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