tparseuints.nim 241 B

12345678
  1. import unittest, strutils
  2. block: # parseutils
  3. check: parseBiggestUInt("0") == 0'u64
  4. check: parseBiggestUInt("18446744073709551615") == 0xFFFF_FFFF_FFFF_FFFF'u64
  5. expect(ValueError):
  6. discard parseBiggestUInt("18446744073709551616")