summary refs log tree commit diff stats
path: root/tests/float/tfloats.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/float/tfloats.nim')
-rw-r--r--tests/float/tfloats.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/float/tfloats.nim b/tests/float/tfloats.nim
index 967605c53..aaed2d615 100644
--- a/tests/float/tfloats.nim
+++ b/tests/float/tfloats.nim
@@ -156,9 +156,8 @@ template main =
         when nimvm:
           discard # xxx, refs #12884
         else:
-          when not defined(js):
-            doAssert x == 1.2345679'f32
-            doAssert $x == "1.2345679"
+          doAssert x == 1.2345679'f32
+          doAssert $x == "1.2345679"
 
 static: main()
 main()