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

Function test_chop_cells

tests/test_cells.py:119–122  ·  view source on GitHub ↗

Simple example of splitting cells into lines of width 3.

()

Source from the content-addressed store, hash-verified

117
118
119def test_chop_cells():
120 """Simple example of splitting cells into lines of width 3."""
121 text = "abcdefghijk"
122 assert chop_cells(text, 3) == ["abc", "def", "ghi", "jk"]
123
124
125def test_chop_cells_double_width_boundary():

Callers

nothing calls this directly

Calls 1

chop_cellsFunction · 0.90

Tested by

no test coverage detected