Merge pull request #53 from basho/bugfix/52

Simple fix for #52: file size matters
This commit is contained in:
Scott Lystig Fritchie 2015-12-08 11:50:10 +09:00
commit 16acda3c7e

View file

@ -42,7 +42,9 @@ basic_test() ->
T2 = machi_merkle_tree:build_tree(D1), T2 = machi_merkle_tree:build_tree(D1),
?assertNotEqual(T1#naive.root, T2#naive.root), ?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) -> make_leaf_nodes(Filesize) ->