Skip to content

Commit

Permalink
Remove change the snuck in on last commit
Browse files Browse the repository at this point in the history
This is why I avoid add -a
  • Loading branch information
spoonincode committed Feb 26, 2018
1 parent bb2217c commit ee3b5c7
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions tests/chain_tests/proof_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,51 +118,6 @@ bool proof_is_valid(const digest_type& digest, const vector<digest_type>& path,

BOOST_AUTO_TEST_SUITE(proof_tests)

static const char poo[] = R"=====(
(module
(table 0 anyfunc)
(memory $0 16)
(export "memory" (memory $0))
(export "apply" (func $apply))

(func $complex_stuff_and_return_a_bool (result i32)
(i32.const 0)
)

(func $apply (param $0 i64) (param $1 i64)
(br_if 0 (call $complex_stuff_and_return_a_bool))

(drop (i64.mul (i64.const 56) (i64.const 34)))
(drop (i64.mul (i64.const 12) (i64.const 55)))
(drop (i64.mul (i64.const 536) (i64.const 2333)))
(drop (i64.mul (i64.const 23) (i64.const 12)))
(drop (i64.mul (i64.const 543) (i64.const 76533)))
)
)
)=====";

BOOST_FIXTURE_TEST_CASE( big_memory, tester ) try {
produce_blocks(2);

create_accounts( {N(bigmem)} );
produce_block();

set_code(N(bigmem), poo);
produce_blocks(1);

signed_transaction trx;
action act;
act.account = N(bigmem);
act.name = N();
act.authorization = vector<permission_level>{{N(bigmem),config::active_name}};
trx.actions.push_back(act);

set_tapos(trx);
trx.sign(get_private_key( N(bigmem), "active" ), chain_id_type());
push_transaction(trx);

} FC_LOG_AND_RETHROW()

BOOST_FIXTURE_TEST_CASE( prove_block_in_chain, tester ) { try {
vector<block_id_type> known_blocks;
known_blocks.reserve(100);
Expand Down

0 comments on commit ee3b5c7

Please sign in to comment.