summary refs log tree commit diff stats
path: root/tests/float/tfloat4.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-06-30 12:36:24 +0200
committerGitHub <noreply@github.com>2021-06-30 12:36:24 +0200
commit19263f27756e56026fe8d1ac05966b84010ae8d1 (patch)
tree8690e4f999e481d74dbf80f920f3cda322cc8c1d /tests/float/tfloat4.nim
parenteaa1c3a37754725f91f54f23080980b82c2f2356 (diff)
downloadNim-19263f27756e56026fe8d1ac05966b84010ae8d1.tar.gz
fixes #18400 (#18402)
Diffstat (limited to 'tests/float/tfloat4.nim')
-rw-r--r--tests/float/tfloat4.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/float/tfloat4.nim b/tests/float/tfloat4.nim
index 6a87cbe66..5bedca371 100644
--- a/tests/float/tfloat4.nim
+++ b/tests/float/tfloat4.nim
@@ -54,4 +54,10 @@ doAssert 9999999999999999.0 == "9999999999999999.0".parseFloat
 doAssert 0.999999999999999 == ".999999999999999".parseFloat
 doAssert 0.9999999999999999 == ".9999999999999999".parseFloat
 
+# bug #18400
+var s = [-13.888888'f32]
+assert $s[0] == "-13.888888"
+var x = 1.23456789012345'f32
+assert $x == "1.2345679"
+
 echo("passed all tests.")