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

Function test_strip_control_codes

tests/test_text.py:885–889  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

883
884
885def test_strip_control_codes():
886 text = Text("foo\rbar")
887 assert str(text) == "foobar"
888 text.append("\x08")
889 assert str(text) == "foobar"
890
891
892def test_get_style_at_offset():

Callers

nothing calls this directly

Calls 2

appendMethod · 0.95
TextClass · 0.90

Tested by

no test coverage detected