aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-10-12 21:09:36 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-11-01 19:55:39 +0300
commitbafb921507761217a2e9013a42e0aa619f831ccf (patch)
treed49293927586f65f5a7a5a54cd48175b9605004e
parente4dc39b3bc4f199c863a71235f7269f7f9e336de (diff)
Remove duplicated code
The deleted LOC is a dup so far as `std::numeric_limits<unsigned int>::min()` == 0
-rw-r--r--src/test/skiplist_tests.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/skiplist_tests.cpp b/src/test/skiplist_tests.cpp
index c0754618fb..eda23b684a 100644
--- a/src/test/skiplist_tests.cpp
+++ b/src/test/skiplist_tests.cpp
@@ -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()));