Skip to content

Commit 00be92c

Browse files
committed
Add basic block.spends() tests.
1 parent 0fa8906 commit 00be92c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/chain/block.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,17 @@ BOOST_AUTO_TEST_CASE(block__to_data__writer__expected)
440440
// fees
441441
// claim
442442

443+
BOOST_AUTO_TEST_CASE(block__spends__genesis__zero)
444+
{
445+
const auto genesis = settings(selection::mainnet).genesis_block;
446+
BOOST_REQUIRE(is_zero(genesis.spends()));
447+
}
448+
449+
BOOST_AUTO_TEST_CASE(block__spends__coinbase_only__zero)
450+
{
451+
BOOST_REQUIRE(is_zero(get_block().spends()));
452+
}
453+
443454
BOOST_AUTO_TEST_CASE(block__hash__default__matches_header_hash)
444455
{
445456
const block instance;

0 commit comments

Comments
 (0)