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

Method test_bigcomp

Lib/test/test_strtod.py:206–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 self.check_strtod(s)
205
206 def test_bigcomp(self):
207 for ndigs in 5, 10, 14, 15, 16, 17, 18, 19, 20, 40, 41, 50:
208 dig10 = 10**ndigs
209 for i in range(10 * TEST_SIZE):
210 digits = random.randrange(dig10)
211 exponent = random.randrange(-400, 400)
212 s = '{}e{}'.format(digits, exponent)
213 self.check_strtod(s)
214
215 def test_parsing(self):
216 # make '0' more likely to be chosen than other digits

Callers

nothing calls this directly

Calls 3

check_strtodMethod · 0.95
randrangeMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected