MCPcopy
hub / github.com/Textualize/rich / test_chop_cells_mixed_width

Function test_chop_cells_mixed_width

tests/test_cells.py:131–134  ·  view source on GitHub ↗

Mixed single and double-width characters.

()

Source from the content-addressed store, hash-verified

129
130
131def test_chop_cells_mixed_width():
132 """Mixed single and double-width characters."""
133 text = "あ1り234が5と6う78"
134 assert chop_cells(text, 3) == ["あ1", "り2", "34", "が5", "と6", "う7", "8"]
135
136
137@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

chop_cellsFunction · 0.90

Tested by

no test coverage detected