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

Method test_format

Lib/test/test_long.py:316–322  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

314 self.assertEqual(int(got, 0), x)
315
316 def test_format(self):
317 for x in special:
318 self.check_format_1(x)
319 for i in range(10):
320 for lenx in range(1, MAXDIGITS+1):
321 x = self.getran(lenx)
322 self.check_format_1(x)
323
324 def test_long(self):
325 # Check conversions from string

Callers

nothing calls this directly

Calls 2

check_format_1Method · 0.95
getranMethod · 0.95

Tested by

no test coverage detected