diff options
author | Dimitry <winsvega@mail.ru> | 2015-06-09 03:28:49 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2015-06-10 19:39:44 +0800 |
commit | 8f2f69f4907bff447b2370aa408b7464c814b157 (patch) | |
tree | ee107527e4dbf47f8d7a9130d4b27e8bdc5f9f97 /TestHelper.cpp | |
parent | 87b09c3ed40ce80ab46cdb48ba3bc3fcc733ea4e (diff) | |
download | dexon-solidity-8f2f69f4907bff447b2370aa408b7464c814b157.tar.gz dexon-solidity-8f2f69f4907bff447b2370aa408b7464c814b157.tar.zst dexon-solidity-8f2f69f4907bff447b2370aa408b7464c814b157.zip |
stPrecompiledContracts from transaction test
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index f7da0238..873ea21e 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -344,6 +344,16 @@ void ImportTest::exportTest(bytes const& _output, State const& _statePost) m_TestObject["out"] = (_output.size() > 4096 && !Options::get().fulloutput) ? "#" + toString(_output.size()) : toHex(_output, 2, HexPrefix::Add); + // compare expected output with post output + if (m_TestObject.count("expectOut") > 0) + { + std::string warning = "Check State: Error! Unexpected output: " + m_TestObject["out"].get_str() + " Expected: " + m_TestObject["expectOut"].get_str(); + if (Options::get().checkState) + BOOST_CHECK_MESSAGE((m_TestObject["out"].get_str() == m_TestObject["expectOut"].get_str()), warning); + else + BOOST_WARN_MESSAGE((m_TestObject["out"].get_str() == m_TestObject["expectOut"].get_str()), warning); + } + // export logs m_TestObject["logs"] = exportLog(_statePost.pending().size() ? _statePost.log(0) : LogEntries()); |