MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_underflow_boundary

Method test_underflow_boundary

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

Source from the content-addressed store, hash-verified

196
197 @unittest.expectedFailure # TODO: RUSTPYTHON
198 def test_underflow_boundary(self):
199 # test values close to 2**-1075, the underflow boundary; similar
200 # to boundary_tests, except that the random error doesn't scale
201 # with n
202 for exponent in range(-400, -320):
203 base = 10**-exponent // 2**1075
204 for j in range(TEST_SIZE):
205 digits = base + random.randrange(-1000, 1000)
206 s = '{}e{}'.format(digits, exponent)
207 self.check_strtod(s)
208
209 @unittest.expectedFailure # TODO: RUSTPYTHON
210 def test_bigcomp(self):

Callers

nothing calls this directly

Calls 3

check_strtodMethod · 0.95
randrangeMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected