diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-11-14 18:44:51 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-11-14 18:44:51 +0800 |
commit | 0e187175b8ec741c0a98a653faec0ed13cb68e65 (patch) | |
tree | c81e4af620d8def9724bfc15afd8d0e900f3e5db /TestHelper.cpp | |
parent | fda1fd586f847b3885d54b16a00a98ad0e054943 (diff) | |
download | dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.tar dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.tar.gz dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.tar.bz2 dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.tar.lz dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.tar.xz dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.tar.zst dexon-solidity-0e187175b8ec741c0a98a653faec0ed13cb68e65.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 c1a141ab..be05ef7f 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -287,6 +287,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); + } } std::string getTestPath() |