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

Function test_wrap_long

tests/test_text.py:519–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517
518
519def test_wrap_long():
520 text = Text("abracadabra", justify="left")
521 lines = text.wrap(Console(), 4)
522 assert len(lines) == 3
523 assert lines[0] == Text("abra")
524 assert lines[1] == Text("cada")
525 assert lines[2] == Text("bra ")
526
527
528def test_wrap_long_multi_codepoint():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected