summary refs log tree commit diff stats
path: root/tests/system
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-08 00:30:24 -0800
committerGitHub <noreply@github.com>2020-02-08 09:30:24 +0100
commite4415422fe2b615a6dfe01bb7136ec41ef429108 (patch)
tree8e9f45c193aad54fa60c79cdc8e5f1981cea04cf /tests/system
parentf3117d350ea245769d60a80b2d12b062cff4b8ff (diff)
downloadNim-e4415422fe2b615a6dfe01bb7136ec41ef429108.tar.gz
Revert "printing float values will have one more digit. (#13276) [backport]" (#13363)
This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
Diffstat (limited to 'tests/system')
-rw-r--r--tests/system/tostring.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/system/tostring.nim b/tests/system/tostring.nim
index ea882e77a..ea4a44417 100644
--- a/tests/system/tostring.nim
+++ b/tests/system/tostring.nim
@@ -11,6 +11,10 @@ doAssert """["", "foo", "bar"]""" == $(@["", "foo", "bar"].toOpenArray(0, 2))
 # bug #2395
 let alphaSet: set[char] = {'a'..'c'}
 doAssert "{'a', 'b', 'c'}" == $alphaSet
+doAssert "2.3242" == $(2.3242)
+doAssert "2.982" == $(2.982)
+doAssert "123912.1" == $(123912.1)
+doAssert "123912.1823" == $(123912.1823)
 doAssert "5.0" == $(5.0)
 doAssert "1e+100" == $(1e100)
 doAssert "inf" == $(1e1000000)