diff options
author | Damien George <damien.p.george@gmail.com> | 2015-04-04 22:05:30 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-04-04 22:05:30 +0100 |
commit | 9dd36404646f857c4f250537bac0d9a8ad041d25 (patch) | |
tree | c6509bcd3c7d5c2e67332110c582df2b5a5c669f /tests/float/complex1.py | |
parent | 7e758b1cf878312cab5d9d2825b36e7235ea10a3 (diff) |
tests: Add missing tests for builtins, and many other things.
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 eafa53746..2fb95c690 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)) |