diff options
author | Tim Peters <tim.peters@gmail.com> | 2002-08-13 02:24:25 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2002-08-13 02:24:25 (GMT) |
commit | d0876b859d3789e7ec8c9ec18f4a04db3fc097c0 (patch) | |
tree | ab565b4672ff63617115617f923f345a992fc35c /Lib/test/test_long.py | |
parent | 28b0e2a7f826abfdcf92feb045bf5ddd3de632a1 (diff) | |
download | cpython-d0876b859d3789e7ec8c9ec18f4a04db3fc097c0.zip cpython-d0876b859d3789e7ec8c9ec18f4a04db3fc097c0.tar.gz cpython-d0876b859d3789e7ec8c9ec18f4a04db3fc097c0.tar.bz2 |
test_division(): Added one larger digits value, to ensure that the
"lopsided Karatsuba" driver also gets some exercise.
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r-- | Lib/test/test_long.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 4602bfb..f5416d3 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -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: |