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

Function test_wrap_3

tests/test_text.py:457–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455
456
457def test_wrap_3():
458 text = Text("foo bar baz")
459 lines = text.wrap(Console(), 3)
460 print(repr(lines))
461 assert len(lines) == 3
462 assert lines[0] == Text("foo")
463 assert lines[1] == Text("bar")
464 assert lines[2] == Text("baz")
465
466
467def test_wrap_4():

Callers

nothing calls this directly

Calls 4

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90
printFunction · 0.50

Tested by

no test coverage detected