Skip to content

Commit

Permalink
Remove duplicated code
Browse files Browse the repository at this point in the history
The deleted LOC is a dup so far as
`std::numeric_limits<unsigned int>::min()` == 0
  • Loading branch information
hebasto committed Nov 1, 2018
1 parent e4dc39b commit bafb921
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/test/skiplist_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ BOOST_AUTO_TEST_CASE(findearliestatleast_edge_test)
BOOST_CHECK_EQUAL(chain.FindEarliestAtLeast(-1)->nHeight, 0);

BOOST_CHECK_EQUAL(chain.FindEarliestAtLeast(std::numeric_limits<int64_t>::min())->nHeight, 0);
BOOST_CHECK_EQUAL(chain.FindEarliestAtLeast(std::numeric_limits<unsigned int>::min())->nHeight, 0);
BOOST_CHECK_EQUAL(chain.FindEarliestAtLeast(-int64_t(std::numeric_limits<unsigned int>::max()) - 1)->nHeight, 0);
BOOST_CHECK(!chain.FindEarliestAtLeast(std::numeric_limits<int64_t>::max()));
BOOST_CHECK(!chain.FindEarliestAtLeast(std::numeric_limits<unsigned int>::max()));
Expand Down

0 comments on commit bafb921

Please sign in to comment.