mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
[amount] tests: Fix off-by-one mistake
This commit is contained in:
parent
fa2da2cb60
commit
facf5a4947
@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(GetFeeTest)
|
|||||||
BOOST_CHECK(CFeeRate(CAmount(26), 789) == CFeeRate(32));
|
BOOST_CHECK(CFeeRate(CAmount(26), 789) == CFeeRate(32));
|
||||||
BOOST_CHECK(CFeeRate(CAmount(27), 789) == CFeeRate(34));
|
BOOST_CHECK(CFeeRate(CAmount(27), 789) == CFeeRate(34));
|
||||||
// Maximum size in bytes, should not crash
|
// Maximum size in bytes, should not crash
|
||||||
CFeeRate(MAX_MONEY, (std::numeric_limits<size_t>::max() >> 1) - 1).GetFeePerK();
|
CFeeRate(MAX_MONEY, std::numeric_limits<size_t>::max() >> 1).GetFeePerK();
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
Loading…
Reference in New Issue
Block a user