diff options
| author | Damien George <damien.p.george@gmail.com> | 2016-05-08 22:21:21 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-05-08 22:21:21 +0100 |
| commit | 65402ab1ec05fd552ceae63e2dcac69095ab1338 (patch) | |
| tree | 865761d91fe0deefa7b8395b2cc2447ff3cfd0df /tests/basics/int_big_mod.py | |
| parent | dc3faea0405dea803828f5a2be314734b8c166b6 (diff) | |
py/mpz: Do Python style division/modulo within bignum divmod routine.
This patch consolidates the Python logic for division/modulo to one place
within the bignum code.
Diffstat (limited to 'tests/basics/int_big_mod.py')
| -rw-r--r-- | tests/basics/int_big_mod.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basics/int_big_mod.py b/tests/basics/int_big_mod.py index f383553c1..e87221c1c 100644 --- a/tests/basics/int_big_mod.py +++ b/tests/basics/int_big_mod.py @@ -4,8 +4,8 @@ delta = 100000000000000000000000000000012345 for i in range(11): for j in range(11): - x = delta * (i)# - 5) # TODO reinstate negative number test when % is working with sign correctly - y = delta * (j)# - 5) # TODO reinstate negative number test when % is working with sign correctly + x = delta * (i - 5) + y = delta * (j - 5) if y != 0: print(x % y) |
