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

Method test_emoji

tests/test_terminal_utils.py:25–29  ·  view source on GitHub ↗

Test emoji width (should count as 2).

(self)

Source from the content-addressed store, hash-verified

23 assert calculate_display_width("") == 0
24
25 def test_emoji(self):
26 """Test emoji width (should count as 2)."""
27 assert calculate_display_width("🤖") == 2
28 assert calculate_display_width("💭") == 2
29 assert calculate_display_width("🤖 Agent") == 8 # 2 + 1 + 5
30
31 def test_chinese_characters(self):
32 """Test Chinese characters (each counts as 2)."""

Callers

nothing calls this directly

Calls 1

calculate_display_widthFunction · 0.90

Tested by

no test coverage detected