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

Function test_wrap_cjk_width_mid_character

tests/test_text.py:495–502  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

493
494
495def test_wrap_cjk_width_mid_character():
496 text = Text("わさび")
497 lines = text.wrap(Console(), 3)
498 assert lines._lines == [
499 Text("わ"),
500 Text("さ"),
501 Text("び"),
502 ]
503
504
505def test_wrap_cjk_mixed():

Callers

nothing calls this directly

Calls 3

wrapMethod · 0.95
TextClass · 0.90
ConsoleClass · 0.90

Tested by

no test coverage detected