summary refs log tree commit diff stats
path: root/tests/stdlib/tparseuints.nim
blob: ef8c782b39112301dd139615628bc63e814ba92f (plain) (blame)
1
2
3
4
5
6
7
import unittest, strutils

block: # parseutils
  check: parseBiggestUInt("0") == 0'u64
  check: parseBiggestUInt("18446744073709551615") == 0xFFFF_FFFF_FFFF_FFFF'u64
  expect(ValueError):
    discard parseBiggestUInt("18446744073709551616")