MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / test_chinese_padding

Method test_chinese_padding

tests/test_terminal_utils.py:142–146  ·  view source on GitHub ↗

Test padding with Chinese characters.

(self)

Source from the content-addressed store, hash-verified

140 assert len(result) == 7
141
142 def test_chinese_padding(self):
143 """Test padding with Chinese characters."""
144 result = pad_to_width("你好", 10)
145 # "你好" is 4 display width, so needs 6 spaces
146 assert calculate_display_width(result) == 10
147
148 def test_emoji_padding(self):
149 """Test padding with emoji."""

Callers

nothing calls this directly

Calls 2

pad_to_widthFunction · 0.90
calculate_display_widthFunction · 0.90

Tested by

no test coverage detected