summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float_parse.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/float/float_parse.py
parent95e43efc994af7d7ff85ef1722eac163be9cc5fd (diff)
downloadmicropython-1ad0013decb42418ca667c2d9994198b537fa778.tar.gz
micropython-1ad0013decb42418ca667c2d9994198b537fa778.zip
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/float/float_parse.py')
-rw-r--r--tests/float/float_parse.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/float/float_parse.py b/tests/float/float_parse.py
index ae6b114f03..4b026de1c8 100644
--- a/tests/float/float_parse.py
+++ b/tests/float/float_parse.py
@@ -24,3 +24,9 @@ print(float('.' + '0' * 60 + '9e40') == float('9e-21'))
print(float('1.00000000000000000000e-37'))
print(float('10.0000000000000000000e-38'))
print(float('100.000000000000000000e-39'))
+
+# very large exponent literal
+print(float('1e4294967301'))
+print(float('1e-4294967301'))
+print(float('1e18446744073709551621'))
+print(float('1e-18446744073709551621'))