Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
495
def
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
505
def
test_wrap_cjk_mixed():
Callers
nothing calls this directly
Calls
3
wrap
Method · 0.95
Text
Class · 0.90
Console
Class · 0.90
Tested by
no test coverage detected