tparseuints.nim 290 B

123456789101112
  1. discard """
  2. matrix: "--mm:refc; --mm:orc"
  3. """
  4. import unittest, strutils
  5. block: # parseutils
  6. check: parseBiggestUInt("0") == 0'u64
  7. check: parseBiggestUInt("18446744073709551615") == 0xFFFF_FFFF_FFFF_FFFF'u64
  8. expect(ValueError):
  9. discard parseBiggestUInt("18446744073709551616")