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

Function test_wrap_long_multi_codepoint

tests/test_text.py:528–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

526
527
528def test_wrap_long_multi_codepoint():
529 female_mechanic = "👩\u200d🔧"
530 text = Text(female_mechanic * 5, justify="left")
531 lines = text.wrap(Console(), 4)
532 assert len(lines) == 3
533 assert lines[0] == Text(female_mechanic * 2)
534 assert lines[1] == Text(female_mechanic * 2)
535 assert lines[2] == Text(female_mechanic + " ")
536
537
538def test_wrap_overflow():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected