summary refs log tree commit diff stats
path: root/tests/stdlib/toids.nim
blob: dd5b84c5189e27d8423442a1459703fb006b8545 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  matrix: "--mm:refc; --mm:orc"
"""

import std/oids
import std/assertions

block: # genOid
  let x = genOid()
  doAssert ($x).len == 24

block:
  let x = genOid()
  let y = parseOid(cstring($x))
  doAssert x == y