Skip to content

Commit

Permalink
Add test condition for is_candidate_block(terminal).
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 14, 2024
1 parent f17ba27 commit 8de3c2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/query/confirm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ BOOST_AUTO_TEST_CASE(query_confirm__is_candidate_block__push_pop_candidate__expe
BOOST_REQUIRE(query.is_candidate_block(0));
BOOST_REQUIRE(!query.is_candidate_block(1));
BOOST_REQUIRE(!query.is_candidate_block(2));

// Terminal returns false.
BOOST_REQUIRE(!query.is_candidate_block(database::header_link::terminal));
}

BOOST_AUTO_TEST_CASE(query_confirm__is_confirmed_block__push_pop_confirmed__expected)
Expand Down

0 comments on commit 8de3c2d

Please sign in to comment.