test_division(): Added one larger digits value, to ensure that the

"lopsided Karatsuba" driver also gets some exercise.
This commit is contained in:
Tim Peters 2002-08-13 02:24:25 +00:00
parent 28b0e2a7f8
commit d0876b859d
1 changed files with 2 additions and 1 deletions

View File

@ -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: