summary refs log tree commit diff stats
path: root/tests/destructor/tnewruntime_strutils.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/destructor/tnewruntime_strutils.nim')
-rw-r--r--tests/destructor/tnewruntime_strutils.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/destructor/tnewruntime_strutils.nim b/tests/destructor/tnewruntime_strutils.nim
index c77177f58..dd190a1b6 100644
--- a/tests/destructor/tnewruntime_strutils.nim
+++ b/tests/destructor/tnewruntime_strutils.nim
@@ -14,8 +14,7 @@ proc retTuple(): (seq[int], int) =
 
 proc nonStaticTests =
   doAssert formatBiggestFloat(1234.567, ffDecimal, -1) == "1234.567000"
-  when not defined(js):
-    doAssert formatBiggestFloat(1234.567, ffDecimal, 0) == "1235."           # <=== bug 8242
+  doAssert formatBiggestFloat(1234.567, ffDecimal, 0) == "1235" # bugs 8242, 12586
   doAssert formatBiggestFloat(1234.567, ffDecimal, 1) == "1234.6"
   doAssert formatBiggestFloat(0.00000000001, ffDecimal, 11) == "0.00000000001"
   doAssert formatBiggestFloat(0.00000000001, ffScientific, 1, ',') in