MCPcopy Index your code
hub / github.com/python/cpython / test_grouping

Method test_grouping

Lib/test/test_locale.py:291–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

289 self._test_format_string("%.2f", 12345.67, out='12345,67')
290
291 def test_grouping(self):
292 self._test_format_string("%.2f", 345.67, grouping=True, out='345,67')
293 self._test_format_string("%.2f", 12345.67, grouping=True, out='12 345,67')
294
295 def test_grouping_and_padding(self):
296 self._test_format_string("%6.2f", 345.67, grouping=True, out='345,67')

Callers

nothing calls this directly

Calls 1

_test_format_stringMethod · 0.80

Tested by

no test coverage detected