diff options
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r-- | tests/float/complex1.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index 479b4b348..c1fa61ba3 100644 --- a/tests/float/complex1.py +++ b/tests/float/complex1.py @@ -36,6 +36,8 @@ ans = 1j ** 2.5j; print("%.5g %.5g" % (ans.real, ans.imag)) # comparison print(1j == 1) print(1j == 1j) +print(0 + 0j == False, 1 + 0j == True) +print(False == 0 + 0j, True == 1 + 0j) # comparison of nan is special nan = float('nan') * 1j |