mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-08 00:13:08 +00:00
Bump questionable and test for tree init failure (#630)
This commit is contained in:
parent
ec8d0c98b2
commit
4d546f9ace
@ -50,6 +50,12 @@ checksuite "merkletree":
|
||||
zeroHash = MultiHash.init($sha256, zero).tryGet()
|
||||
oneHash = MultiHash.init($sha256, one).tryGet()
|
||||
|
||||
test "cannot init tree without any leafs":
|
||||
let treeOrErr = MerkleTree.init(newSeq[MultiHash]())
|
||||
|
||||
check:
|
||||
treeOrErr.isErr
|
||||
|
||||
test "tree with one leaf has expected structure":
|
||||
builder.addDataBlock(data[0]).tryGet()
|
||||
|
||||
|
||||
2
vendor/questionable
vendored
2
vendor/questionable
vendored
@ -1 +1 @@
|
||||
Subproject commit 2dd6b6b220f9f14a1231f6cafdf24f012bcc8414
|
||||
Subproject commit 1f0afff48bf80ab1149a0957f9743f345bc14b71
|
||||
Loading…
x
Reference in New Issue
Block a user