diff options
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r-- | tests/float/complex1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index eafa53746a..2fb95c6908 100644 --- a/tests/float/complex1.py +++ b/tests/float/complex1.py @@ -33,6 +33,9 @@ ans = 1j ** 2.5j; print("%.5g %.5g" % (ans.real, ans.imag)) print(abs(1j)) print("%.5g" % abs(1j + 2)) +# float on lhs should delegate to complex +print(1.2 + 3j) + # convert bignum to complex on rhs ans = 1j + (1 << 70); print("%.5g %.5g" % (ans.real, ans.imag)) |