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

Method test_emoji_padding

tests/test_terminal_utils.py:148–152  ·  view source on GitHub ↗

Test padding with emoji.

(self)

Source from the content-addressed store, hash-verified

146 assert calculate_display_width(result) == 10
147
148 def test_emoji_padding(self):
149 """Test padding with emoji."""
150 result = pad_to_width("🤖", 10)
151 # "🤖" is 2 display width, so needs 8 spaces
152 assert calculate_display_width(result) == 10
153
154 def test_no_padding_needed(self):
155 """Test when text already reaches target width."""

Callers

nothing calls this directly

Calls 2

pad_to_widthFunction · 0.90
calculate_display_widthFunction · 0.90

Tested by

no test coverage detected