Skip to content

Commit

Permalink
fix test_serialization.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Oct 10, 2024
1 parent 66c6f12 commit 36832ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_serialization.nim
Original file line number Diff line number Diff line change
Expand Up @@ -678,14 +678,14 @@ suite "toJson tests":
"""

test "max unsigned value":
var uintVal = not BiggestUint(0)
var uintVal = not BiggestUInt(0)
let jsonValue = Json.encode(uintVal)
check:
jsonValue == "18446744073709551615"
Json.decode(jsonValue, BiggestUint) == uintVal
Json.decode(jsonValue, BiggestUInt) == uintVal

expect JsonReaderError:
discard Json.decode(jsonValue, BiggestUint, flags = {JsonReaderFlag.portableInt})
discard Json.decode(jsonValue, BiggestUInt, flags = {JsonReaderFlag.portableInt})

test "max signed value":
let intVal = BiggestInt.high
Expand Down

0 comments on commit 36832ee

Please sign in to comment.