Commit e5c9065e authored by Volodymyr Shamray's avatar Volodymyr Shamray

Implement unit tests for GetNextSuperblock()

parent 7119e600
......@@ -1542,3 +1542,24 @@ BOOST_FIXTURE_TEST_SUITE(SuperblockPayment, SuperblockPaymentFixture)
}
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE(TestGetNextSuperblock)
BOOST_AUTO_TEST_CASE(InBetween)
{
const int current = 100500;
const int expected = 129600;
BOOST_REQUIRE_EQUAL(expected, GetNextSuperblock(current));
}
BOOST_AUTO_TEST_CASE(EqualToSuperblock)
{
const int current = 129600;
const int expected = 172800;
BOOST_REQUIRE_EQUAL(expected, GetNextSuperblock(current));
}
BOOST_AUTO_TEST_SUITE_END()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment