Simple fix for #52: file size matters

This commit is contained in:
Scott Lystig Fritchie 2015-12-07 10:24:19 +09:00
parent e9b1134cd9
commit 1d3d121d83

View file

@ -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) ->