]> granicus.if.org Git - python/commitdiff
Add an extra test for long <-> float hash equivalence.
authorMark Dickinson <dickinsm@gmail.com>
Sat, 31 Jan 2009 16:44:04 +0000 (16:44 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 31 Jan 2009 16:44:04 +0000 (16:44 +0000)
Lib/test/test_hash.py

index 7ce40b95b7c76d551d62f26927e9d786ba67b41c..fa0fb2378f27fdd7c8ccc52b9ee44e7da8f9e9d6 100644 (file)
@@ -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))