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

Function test_wrap_overflow_long

tests/test_text.py:547–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

545
546
547def test_wrap_overflow_long():
548 text = Text("bigword" * 10)
549 lines = text.wrap(Console(), 4, overflow="ellipsis")
550 assert len(lines) == 1
551 assert lines[0] == Text("big…")
552
553
554def test_wrap_long_words():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected