Changeset View
Changeset View
Standalone View
Standalone View
src/test/script_standard_tests.cpp
Show All 30 Lines | if (opcode < OP_PUSHDATA1) { | ||||
WriteLE32(_data, b.size()); | WriteLE32(_data, b.size()); | ||||
script.insert(script.end(), _data, _data + sizeof(_data)); | script.insert(script.end(), _data, _data + sizeof(_data)); | ||||
} | } | ||||
script.insert(script.end(), b.begin(), b.end()); | script.insert(script.end(), b.begin(), b.end()); | ||||
} | } | ||||
BOOST_FIXTURE_TEST_SUITE(script_standard_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(script_standard_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(dest_default_is_no_dest) { | |||||
CTxDestination dest; | |||||
BOOST_CHECK(!IsValidDestination(dest)); | |||||
} | |||||
BOOST_AUTO_TEST_CASE(script_standard_Solver_success) { | BOOST_AUTO_TEST_CASE(script_standard_Solver_success) { | ||||
CKey keys[3]; | CKey keys[3]; | ||||
CPubKey pubkeys[3]; | CPubKey pubkeys[3]; | ||||
for (int i = 0; i < 3; i++) { | for (int i = 0; i < 3; i++) { | ||||
keys[i].MakeNewKey(true); | keys[i].MakeNewKey(true); | ||||
pubkeys[i] = keys[i].GetPubKey(); | pubkeys[i] = keys[i].GetPubKey(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |