Skip to content

Commit

Permalink
Reduce number of boost test assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp committed Mar 29, 2024
1 parent 0663a3d commit 08c5186
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions unittests/merkle_tree_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,9 @@ BOOST_AUTO_TEST_CASE(consistency_over_large_range) {
std::vector<digest_type> digests = create_test_digests(num_digests);
for (size_t i=1; i<num_digests; ++i) {
incremental_merkle_tree tree;
for (size_t j=0; j<i; ++j) {
BOOST_CHECK_EQUAL(tree.num_digests_appended(), j);
for (size_t j=0; j<i; ++j)
tree.append(digests[j]);
}
BOOST_CHECK_EQUAL(tree.num_digests_appended(), i);
BOOST_CHECK_EQUAL(calculate_merkle({digests.begin(), digests.begin() + i}), tree.get_root());
}
}
Expand Down

0 comments on commit 08c5186

Please sign in to comment.