Commit 5615c480 authored by Robert Bradshaw's avatar Robert Bradshaw Committed by Stefan Behnel

Further future division tests.

parent 94600281
......@@ -150,3 +150,10 @@ def infer_division_type():
v = (10000**2 - 1) / 12
print(cython.typeof(v))
return v
def int_int(int a, int b):
"""
>>> int_int(1, 2)
(0.5, 2.0)
"""
return a/b, b/a
......@@ -136,3 +136,10 @@ def float_mix_rev(float a):
(0.25, 0.0, 1.25, 1.0, 1.25, 1.0)
"""
return 1/a, 1//a, 5.0/a, 5.0//a, 5/a, 5//a
def int_int(int a, int b):
"""
>>> int_int(1, 2)
(0, 2)
"""
return a/b, b/a
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment