Test padding with emoji.
(self)
| 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.""" |
nothing calls this directly
no test coverage detected