mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
test_division(): Added one larger digits value, to ensure that the
"lopsided Karatsuba" driver also gets some exercise.
This commit is contained in:
parent
28b0e2a7f8
commit
d0876b859d
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ def test_division(maxdigits=MAXDIGITS):
|
|||
if verbose:
|
||||
print "long / * % divmod"
|
||||
digits = range(1, maxdigits+1) + range(KARATSUBA_CUTOFF,
|
||||
KARATSUBA_CUTOFF + 15)
|
||||
KARATSUBA_CUTOFF + 14)
|
||||
digits.append(KARATSUBA_CUTOFF * 3)
|
||||
for lenx in digits:
|
||||
x = getran(lenx)
|
||||
for leny in digits:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue