Simple fix for #52: file size matters
This commit is contained in:
parent
e9b1134cd9
commit
1d3d121d83
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ basic_test() ->
|
|||
T2 = machi_merkle_tree:build_tree(D1),
|
||||
|
||||
?assertNotEqual(T1#naive.root, T2#naive.root),
|
||||
?assertEqual(1, length(machi_merkle_tree:naive_diff(T1, T2))).
|
||||
?assertEqual(true, length(machi_merkle_tree:naive_diff(T1, T2)) == 1
|
||||
orelse
|
||||
Filesize > ChunkSize).
|
||||
|
||||
|
||||
make_leaf_nodes(Filesize) ->
|
||||
|
|
Loading…
Reference in a new issue