summary refs log blame commit diff stats
path: root/tests/stdlib/tparseuints.nim
blob: 5be3bcbd00b11ede359da3081c9909e4d45a6e8e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                
discard """
  action: run
"""
import unittest, strutils

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