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

Method test_simple

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

Source from the content-addressed store, hash-verified

190 out=('-4%s200' % self.sep).ljust(10))
191
192 def test_simple(self):
193 self._test_format_string("%f", 1024, grouping=0, out='1024.000000')
194 self._test_format_string("%f", 102, grouping=0, out='102.000000')
195 self._test_format_string("%f", -42, grouping=0, out='-42.000000')
196 self._test_format_string("%+f", -42, grouping=0, out='-42.000000')
197
198 def test_padding(self):
199 self._test_format_string("%20.f", -42, grouping=0, out='-42'.rjust(20))

Callers

nothing calls this directly

Calls 1

_test_format_stringMethod · 0.80

Tested by

no test coverage detected