Skip to content

Commit

Permalink
closes nim-lang#6549; adds a test case (nim-lang#23929)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Aug 9, 2024
1 parent c97a20c commit d76ea4f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/stdlib/tsystem.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ discard """
"""

import stdtest/testutils
import std/assertions
import std/[assertions, formatfloat]

# TODO: in future work move existing `system` tests here, where they belong

Expand Down Expand Up @@ -182,3 +182,19 @@ block: # bug #20516

when not defined(js):
let a = create(Foo)

block: # bug #6549
when not defined(js):
block:
const v = 18446744073709551615'u64

doAssert $v == "18446744073709551615"
doAssert $float32(v) == "1.8446744e+19", $float32(v)
doAssert $float64(v) == "1.8446744073709552e+19", $float64(v)

block:
let v = 18446744073709551615'u64

doAssert $v == "18446744073709551615"
doAssert $float32(v) == "1.8446744e+19"
doAssert $float64(v) == "1.8446744073709552e+19"

0 comments on commit d76ea4f

Please sign in to comment.