nim-eth/tests/keyfile/test_uuid.nim
Jacek Sieka 205b57fe71
port kvstore from nim-beacon-chain (#230)
* port kvstore from nim-beacon-chain
* remove old database backends
* use kvstore in trie database
* add sqlite dep
* avoid template param double evaluation
* clean up heterogenous lookup todo
2020-04-27 15:16:11 +02:00

24 lines
549 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 eth/keyfile/uuid, unittest
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