summary refs log tree commit diff stats
path: root/tests/stdlib/toids.nim
blob: 95161415d92a833eee89a62914d1b64fe93404ba (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 == 32

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