aboutsummaryrefslogtreecommitdiffstats
path: root/TestHelper.cpp
diff options
context:
space:
mode:
authorChristoph Jentzsch <jentzsch.software@gmail.com>2014-11-19 21:30:42 +0800
committerChristoph Jentzsch <jentzsch.software@gmail.com>2014-11-19 21:30:42 +0800
commitb1e26e28e3996abb2c45edf481681a491a357f32 (patch)
tree1055957cc8d558ef90bb3be971763f54c4b9e5b2 /TestHelper.cpp
parent52dc2b4bc57c782bf12159e47c0c42490c86f28c (diff)
downloaddexon-solidity-b1e26e28e3996abb2c45edf481681a491a357f32.tar.gz
dexon-solidity-b1e26e28e3996abb2c45edf481681a491a357f32.tar.zst
dexon-solidity-b1e26e28e3996abb2c45edf481681a491a357f32.zip
Add Log tests
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r--TestHelper.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index 1b13f9e8..a0e2d572 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -287,6 +287,18 @@ void checkStorage(map<u256, u256> _expectedStore, map<u256, u256> _resultStore,
}
}
+void checkLog(LogEntries _resultLogs, LogEntries _expectedLogs)
+{
+ BOOST_REQUIRE_EQUAL(_resultLogs.size(), _expectedLogs.size());
+
+ for (size_t i = 0; i < _resultLogs.size(); ++i)
+ {
+ BOOST_CHECK(_resultLogs[i].address == _expectedLogs[i].address);
+ BOOST_CHECK(_resultLogs[i].topics == _expectedLogs[i].topics);
+ BOOST_CHECK(_resultLogs[i].data == _expectedLogs[i].data);
+ }
+}
+
std::string getTestPath()
{
string testPath;