MCPcopy
hub / github.com/phuryn/claude-usage / test_thousands

Method test_thousands

tests/test_cli.py:167–169  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

165 self.assertEqual(fmt(1_000_000), "1.00M")
166
167 def test_thousands(self):
168 self.assertEqual(fmt(1_500), "1.5K")
169 self.assertEqual(fmt(1_000), "1.0K")
170
171 def test_small_numbers(self):
172 self.assertEqual(fmt(999), "999")

Callers

nothing calls this directly

Calls 1

fmtFunction · 0.90

Tested by

no test coverage detected