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

Function test_split_graphemes

tests/test_cells.py:224–231  ·  view source on GitHub ↗
(
    text: str, expected_spans: list[CellSpan], expected_cell_length: int
)

Source from the content-addressed store, hash-verified

222 ],
223)
224def test_split_graphemes(
225 text: str, expected_spans: list[CellSpan], expected_cell_length: int
226):
227 spans, cell_length = split_graphemes(text)
228 print(spans)
229 assert cell_len(text) == expected_cell_length
230 assert spans == expected_spans
231 assert cell_length == expected_cell_length
232
233
234def test_nerd_font():

Callers

nothing calls this directly

Calls 3

split_graphemesFunction · 0.90
cell_lenFunction · 0.90
printFunction · 0.50

Tested by

no test coverage detected