Skip to content

Commit

Permalink
a few extra tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan James committed May 8, 2024
1 parent e4c75b8 commit 32f62ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/eosio.system_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ BOOST_FIXTURE_TEST_CASE(producer_pay, eosio_system_tester, * boost::unit_test::t
const asset after_system_balance = get_balance(config::system_account_name);
const asset after_producer_balance = get_balance("defproducera"_n);

BOOST_REQUIRE_EQUAL(after_supply.get_amount() - before_supply.get_amount(), 0);
BOOST_REQUIRE_EQUAL(after_supply.get_amount(), before_supply.get_amount());
BOOST_REQUIRE_EQUAL(after_system_balance.get_amount() - before_system_balance.get_amount(), -1407793756);
BOOST_REQUIRE_EQUAL(after_producer_balance.get_amount() - before_producer_balance.get_amount(), 281558751);
}
Expand Down
10 changes: 9 additions & 1 deletion tests/eosio.token_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,15 @@ BOOST_FIXTURE_TEST_CASE( issuefixed_tests, eosio_token_tester ) try {
);

BOOST_REQUIRE_EQUAL( wasm_assert_msg( "symbol precision mismatch" ),
issuefixed( "alice"_n, asset::from_string("1 TKN"), "hola" )
issuefixed( "alice"_n, asset::from_string("1 TKN"), "" )
);

BOOST_REQUIRE_EQUAL( wasm_assert_msg( "tokens can only be issued to issuer account" ),
issuefixed( "bob"_n, asset::from_string("1.000 TKN"), "" )
);

BOOST_REQUIRE_EQUAL( wasm_assert_msg( "must issue positive quantity" ),
issuefixed( "alice"_n, asset::from_string("500.000 TKN"), "" )
);

} FC_LOG_AND_RETHROW()
Expand Down

0 comments on commit 32f62ab

Please sign in to comment.