mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
add memory tests
This commit is contained in:
parent
8628b65164
commit
98a08c926a
@ -205,6 +205,8 @@ void ImportTest::exportTest(bytes const& _output, State const& _statePost)
|
|||||||
}
|
}
|
||||||
m_TestObject["post"] = json_spirit::mValue(postState);
|
m_TestObject["post"] = json_spirit::mValue(postState);
|
||||||
|
|
||||||
|
m_TestObject["postStateRoot"] = toHex(_statePost.rootHash().asBytes());
|
||||||
|
|
||||||
// export pre state
|
// export pre state
|
||||||
json_spirit::mObject preState;
|
json_spirit::mObject preState;
|
||||||
|
|
||||||
|
@ -1459,7 +1459,5 @@
|
|||||||
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
|
"secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
|
||||||
"data" : "0xff55883355001144bbccddffeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
"data" : "0xff55883355001144bbccddffeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,6 @@ void doStateTests(json_spirit::mValue& v, bool _fillin)
|
|||||||
|
|
||||||
// check addresses
|
// check addresses
|
||||||
#if ETH_FATDB
|
#if ETH_FATDB
|
||||||
cout << "fatDB is defined\n";
|
|
||||||
auto expectedAddrs = importer.m_statePost.addresses();
|
auto expectedAddrs = importer.m_statePost.addresses();
|
||||||
auto resultAddrs = theState.addresses();
|
auto resultAddrs = theState.addresses();
|
||||||
for (auto& expectedPair : expectedAddrs)
|
for (auto& expectedPair : expectedAddrs)
|
||||||
@ -206,16 +205,17 @@ BOOST_AUTO_TEST_CASE(stMemoryStressTest)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(stSolidityTest)
|
BOOST_AUTO_TEST_CASE(stSolidityTest)
|
||||||
{
|
{
|
||||||
dev::test::executeTests("stSolidityTest", "/StateTests", dev::test::doStateTests);
|
dev::test::executeTests("stSolidityTest", "/StateTests", dev::test::doStateTests);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(stMemoryTest)
|
BOOST_AUTO_TEST_CASE(stMemoryTest)
|
||||||
{
|
{
|
||||||
dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests);
|
dev::test::executeTests("stMemoryTest", "/StateTests", dev::test::doStateTests);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(stCreateTest)
|
BOOST_AUTO_TEST_CASE(stCreateTest)
|
||||||
{
|
{
|
||||||
for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i)
|
for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user