(prec, maxexp, itr)
| 311 | |
| 312 | # If itr == None, test all digit lengths up to prec + 30 |
| 313 | def un_incr_digits(prec, maxexp, itr): |
| 314 | if itr is None: |
| 315 | lst = range(prec+30) |
| 316 | else: |
| 317 | lst = sample(range(prec+30), itr) |
| 318 | for m in lst: |
| 319 | yield from_triple(1, ndigits(m), 0) |
| 320 | yield from_triple(-1, ndigits(m), 0) |
| 321 | yield from_triple(1, ndigits(m), randrange(maxexp)) |
| 322 | yield from_triple(-1, ndigits(m), randrange(maxexp)) |
| 323 | |
| 324 | # If itr == None, test all digit lengths up to prec + 30 |
| 325 | # Also output decimals im tuple form. |
nothing calls this directly
no test coverage detected
searching dependent graphs…