From 7fababd583ee5e3c113c0d83a04c07f2ee0ef06d Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 18 Aug 2023 00:52:38 +0800 Subject: make float32 literals stringifying behave in JS the same as in C (#22500) --- tests/float/tfloats.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/float') 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() -- cgit 1.4.1-2-gfad0