summaryrefslogtreecommitdiff
path: root/tests/basics/int_big_mod.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-08 22:21:21 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-08 22:21:21 +0100
commit65402ab1ec05fd552ceae63e2dcac69095ab1338 (patch)
tree865761d91fe0deefa7b8395b2cc2447ff3cfd0df /tests/basics/int_big_mod.py
parentdc3faea0405dea803828f5a2be314734b8c166b6 (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.py4
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)