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

Function test_wrap_overflow

tests/test_text.py:538–544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

536
537
538def test_wrap_overflow():
539 text = Text("Some more words")
540 lines = text.wrap(Console(), 4, overflow="ellipsis")
541 assert (len(lines)) == 3
542 assert lines[0] == Text("Some")
543 assert lines[1] == Text("more")
544 assert lines[2] == Text("wor…")
545
546
547def test_wrap_overflow_long():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected