mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Add an extra test for long <-> float hash equivalence.
This commit is contained in:
parent
857ce15791
commit
f709ab8526
1 changed files with 1 additions and 0 deletions
|
@ -35,6 +35,7 @@ class HashEqualityTestCase(unittest.TestCase):
|
|||
self.same_hash(int(-2**63), long(-2**63), float(-2**63))
|
||||
self.same_hash(int(1-2**63), long(1-2**63))
|
||||
self.same_hash(int(2**63-1), long(2**63-1))
|
||||
self.same_hash(long(2**63), float(2**63))
|
||||
|
||||
def test_coerced_floats(self):
|
||||
self.same_hash(long(1.23e300), float(1.23e300))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue