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

Function test_wrap_4

tests/test_text.py:467–473  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

465
466
467def test_wrap_4():
468 text = Text("foo bar baz", justify="left")
469 lines = text.wrap(Console(), 4)
470 assert len(lines) == 3
471 assert lines[0] == Text("foo ")
472 assert lines[1] == Text("bar ")
473 assert lines[2] == Text("baz ")
474
475
476def test_wrap_wrapped_word_length_greater_than_available_width():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected