aboutsummaryrefslogtreecommitdiff
path: root/tests/float
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float')
-rw-r--r--tests/float/cmath_fun.py2
-rw-r--r--tests/float/float1.py4
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/float/cmath_fun.py b/tests/float/cmath_fun.py
index e13271372..dfb6c56bd 100644
--- a/tests/float/cmath_fun.py
+++ b/tests/float/cmath_fun.py
@@ -12,7 +12,7 @@ print("%.5g" % e)
print("%.5g" % pi)
test_values_non_zero = []
-base_values = (0.0, 0.5, 1.23456, 10.)
+base_values = (0.0, 0.5, 1.2345, 10.)
for r in base_values:
for i in base_values:
if r != 0. or i != 0.:
diff --git a/tests/float/float1.py b/tests/float/float1.py
index bf1305c3d..5971e6d0a 100644
--- a/tests/float/float1.py
+++ b/tests/float/float1.py
@@ -14,3 +14,7 @@ try:
1.0 // 0
except ZeroDivisionError:
print("ZeroDivisionError")
+
+# test constant float with more than 255 chars
+x = 1.84728699436059052516398251149631771898472869943605905251639825114963177189847286994360590525163982511496317718984728699436059052516398251149631771898472869943605905251639825114963177189847286994360590525163982511496317718984728699436059052516398251149631771898472869943605905251639825114963177189
+print("%.5f" % x)