summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-18 00:52:38 +0800
committerGitHub <noreply@github.com>2023-08-17 18:52:38 +0200
commit7fababd583ee5e3c113c0d83a04c07f2ee0ef06d (patch)
tree1adb0cab8dcb34c57a3709953dbe79fa2d6d644a /tests
parent98c39e8e571b95e7d9351c7115f897ce9af1a218 (diff)
downloadNim-7fababd583ee5e3c113c0d83a04c07f2ee0ef06d.tar.gz
make float32 literals stringifying behave in JS the same as in C (#22500)
Diffstat (limited to 'tests')
-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()