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

Function test_wrap_long_words

tests/test_text.py:554–563  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

552
553
554def test_wrap_long_words():
555 text = Text("XX 12345678912")
556 lines = text.wrap(Console(), 4)
557
558 assert lines._lines == [
559 Text("XX "),
560 Text("1234"),
561 Text("5678"),
562 Text("912"),
563 ]
564
565
566def test_wrap_long_words_2():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected