summaryrefslogtreecommitdiff
path: root/tests/basics/builtin_hash_intbig.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-05-21 13:05:40 +1000
committerDamien George <damien.p.george@gmail.com>2018-05-21 13:05:40 +1000
commit1ad0013decb42418ca667c2d9994198b537fa778 (patch)
tree2647bd161006438865a89dfd3f9fc4b814501752 /tests/basics/builtin_hash_intbig.py
parent95e43efc994af7d7ff85ef1722eac163be9cc5fd (diff)
tests: Add some tests for bigint hash, float hash and float parsing.
Following outcome of recent fuzz testing and sanitizing by @jepler.
Diffstat (limited to 'tests/basics/builtin_hash_intbig.py')
-rw-r--r--tests/basics/builtin_hash_intbig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/builtin_hash_intbig.py b/tests/basics/builtin_hash_intbig.py
index 0092c0f3a..df51f72ab 100644
--- a/tests/basics/builtin_hash_intbig.py
+++ b/tests/basics/builtin_hash_intbig.py
@@ -8,3 +8,6 @@ class F:
def __hash__(self):
return 1 << 70 | 1
print(hash(F()) != 0)
+
+# this had a particular error with internal integer arithmetic of hash function
+print(hash(6699999999999999999999999999999999999999999999999999999999999999999999) != 0)