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

Function test_chop_cells_double_width_boundary

tests/test_cells.py:125–128  ·  view source on GitHub ↗

The available width lies within a double-width character.

()

Source from the content-addressed store, hash-verified

123
124
125def test_chop_cells_double_width_boundary():
126 """The available width lies within a double-width character."""
127 text = "ありがとう"
128 assert chop_cells(text, 3) == ["あ", "り", "が", "と", "う"]
129
130
131def test_chop_cells_mixed_width():

Callers

nothing calls this directly

Calls 1

chop_cellsFunction · 0.90

Tested by

no test coverage detected