Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_wrap_cjk
Function
test_wrap_cjk
tests/test_text.py:486–492 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
484
485
486
def
test_wrap_cjk():
487
text = Text(
"わさび"
)
488
lines = text.wrap(Console(), 4)
489
assert lines._lines == [
490
Text(
"わさ"
),
491
Text(
"び"
),
492
]
493
494
495
def
test_wrap_cjk_width_mid_character():
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