summary refs log tree commit diff stats
path: root/tests/stdlib/tparseuints.nim
blob: 72041da665e8cf48ca8ac2d33a64e9ce17fdb148 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
  action: run
  output: '''

[Suite] parseutils
'''
"""
import unittest, strutils

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