nim-eth/tests/keyfile/test_uuid.nim
Kim De Mey 762415319c
Add build_dcli target and add it to CI (#344)
* Add build_dcli target and add it to CI

* Fix local imports for dcli

* And use local imports for all other files too

* Use local imports in tests and rlpx protocols
2021-04-06 13:33:24 +02:00

26 lines
559 B
Nim

#
# Ethereum KeyFile
# (c) Copyright 2018
# Status Research & Development GmbH
#
# Licensed under either of
# Apache License, version 2.0, (LICENSE-APACHEv2)
# MIT license (LICENSE-MIT)
{.used.}
import
unittest,
../../eth/keyfile/uuid
suite "Cross-platform UUID test suite":
test "Platform UUID check":
check uuidGenerate().isOk
test "Conversion test":
let u = uuidGenerate()[]
check:
len($u) == 36
$uuidFromString($u)[] == $u
uuidToString(u) == $u