()
| 100 | e -= 1 |
| 101 | |
| 102 | def test_underflow_boundary(): |
| 103 | # test values close to 2**-1075, the underflow boundary; similar |
| 104 | # to boundary_tests, except that the random error doesn't scale |
| 105 | # with n |
| 106 | for exponent in range(-400, -320): |
| 107 | base = 10**-exponent // 2**1075 |
| 108 | for j in range(TEST_SIZE): |
| 109 | digits = base + random.randrange(-1000, 1000) |
| 110 | s = '{}e{}'.format(digits, exponent) |
| 111 | yield s |
| 112 | |
| 113 | def test_bigcomp(): |
| 114 | for ndigs in 5, 10, 14, 15, 16, 17, 18, 19, 20, 40, 41, 50: |
no test coverage detected
searching dependent graphs…