diff options
author | Damien George <damien.p.george@gmail.com> | 2017-04-04 12:14:34 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-04-04 12:14:34 +1000 |
commit | 677fb3101525bc655d9fd548b8c2cecfc8deefd2 (patch) | |
tree | dd28548393fe4578957dd83ca2a93d5b3c009216 /tests/float/complex1.py | |
parent | 19f2e47d59b539f94a49137c379c88f0aed53cf1 (diff) |
tests/float: Add tests for hashing float and complex numbers.
Diffstat (limited to 'tests/float/complex1.py')
-rw-r--r-- | tests/float/complex1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/float/complex1.py b/tests/float/complex1.py index 8c8d285e1..a6038de04 100644 --- a/tests/float/complex1.py +++ b/tests/float/complex1.py @@ -41,6 +41,10 @@ print(1j == 1j) print(abs(1j)) print("%.5g" % abs(1j + 2)) +# builtin hash +print(hash(1 + 0j)) +print(type(hash(1j))) + # float on lhs should delegate to complex print(1.2 + 3j) |