Skip to content

Commit da0cf95

Browse files
committed
Work around regression in float representation in Nim 2.2.2.
1 parent e7dec66 commit da0cf95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test2.nim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,10 @@ test "config expressions":
315315

316316
# interpolation
317317

318-
check CV("A-4 a test_foo true 10 1e-07 1e+20 1 b [a, c, e, g]Z") == cfg["interp"]
318+
when (NimMajor, NimMinor, NimPatch) >= (2, 2, 2):
319+
check CV("A-4 a test_foo true 10 0.0000001 1e+20 1 b [a, c, e, g]Z") == cfg["interp"]
320+
else:
321+
check CV("A-4 a test_foo true 10 1e-07 1e+20 1 b [a, c, e, g]Z") == cfg["interp"]
319322
check CV("{a: b}") == cfg["interp2"]
320323

321324
type

0 commit comments

Comments
 (0)