mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
tests: Add some tests for bigint hash, float hash and float parsing.
Following outcome of recent fuzz testing and sanitizing by @jepler.
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user