diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-11-14 18:44:51 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-12-12 02:32:42 +0800 |
commit | 5d22ebe4474824aa769eeea570808ada310e2516 (patch) | |
tree | c4a3fd2aacc893769c6c2117cbf9395ef02d362e /TestHelper.cpp | |
parent | 1d17d349797b9267f6d541c812b8eed3a6954977 (diff) | |
download | dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.tar dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.tar.gz dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.tar.bz2 dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.tar.lz dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.tar.xz dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.tar.zst dexon-solidity-5d22ebe4474824aa769eeea570808ada310e2516.zip |
Test unexpected storage entries
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index ea0bf341..b0935d0b 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -329,6 +329,12 @@ void checkStorage(map<u256, u256> _expectedStore, map<u256, u256> _resultStore, BOOST_CHECK_MESSAGE(expectedStoreValue == resultStoreValue, _expectedAddr << ": store[" << expectedStoreKey << "] = " << resultStoreValue << ", expected " << expectedStoreValue); } } + + for (auto&& resultStorePair : _resultStore) + { + if (!_expectedStore.count(resultStorePair.first)) + BOOST_ERROR("unexpected result store key " << resultStorePair.first); + } } void checkLog(LogEntries _resultLogs, LogEntries _expectedLogs) |