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

Method test_center_align

tests/test_terminal_utils.py:129–133  ·  view source on GitHub ↗

Test center alignment.

(self)

Source from the content-addressed store, hash-verified

127 assert len(result) == 10
128
129 def test_center_align(self):
130 """Test center alignment."""
131 result = pad_to_width("Test", 10, align="center")
132 assert result == " Test "
133 assert len(result) == 10
134
135 def test_center_align_odd(self):
136 """Test center alignment with odd padding."""

Callers

nothing calls this directly

Calls 1

pad_to_widthFunction · 0.90

Tested by

no test coverage detected