make dragonbox opt-in via -d:nimFpRoundtrips (#18504)
* make dragonbox opt-in via -d:nimFpRoundtrips * make tests green again * make tests green again
This commit is contained in:
parent
96a7f9b31c
commit
25efb53862
8 changed files with 35 additions and 27 deletions
|
|
@ -66,6 +66,8 @@ template main =
|
|||
var a = 1.1'f32
|
||||
doAssert $a == "1.1", $a # was failing
|
||||
|
||||
proc runtimeOnlyTests =
|
||||
# enable for 'static' once -d:nimFpRoundtrips became the default
|
||||
block: # bug #7717
|
||||
proc test(f: float) =
|
||||
let f2 = $f
|
||||
|
|
@ -82,3 +84,5 @@ template main =
|
|||
|
||||
static: main()
|
||||
main()
|
||||
|
||||
runtimeOnlyTests()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue