diff options
Diffstat (limited to 'tests/basics/int-big-mod.py')
-rw-r--r-- | tests/basics/int-big-mod.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/basics/int-big-mod.py b/tests/basics/int-big-mod.py new file mode 100644 index 0000000000..77c0ffc468 --- /dev/null +++ b/tests/basics/int-big-mod.py @@ -0,0 +1,10 @@ +# test % operation on big integers + +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 + if y != 0: + print(x % y) |