mirror of
https://github.com/logos-storage/logos-storage-nim-validator.git
synced 2026-01-03 22:13:11 +00:00
13 lines
288 B
Nim
13 lines
288 B
Nim
import ../basics
|
|
import codexvalidator/blocks
|
|
import codexvalidator/hashing
|
|
|
|
suite "Blocks":
|
|
|
|
test "have a correct block id":
|
|
let blck = Block.example
|
|
check blck.id.author == blck.author
|
|
check blck.id.round == blck.round
|
|
check blck.id.hash == Hash.hash(blck.toBytes())
|
|
|