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

Function test_wrap_long_words_2

tests/test_text.py:566–574  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564
565
566def test_wrap_long_words_2():
567 # https://github.com/Textualize/rich/issues/2273
568 text = Text("Hello, World...123")
569 lines = text.wrap(Console(), 10)
570 assert lines._lines == [
571 Text("Hello, "),
572 Text("World...12"),
573 Text("3"),
574 ]
575
576
577def test_wrap_long_words_followed_by_other_words():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected