Test unexpected storage entries

This commit is contained in:
Paweł Bylica
2014-12-11 19:32:42 +01:00
parent 1d17d34979
commit 5d22ebe447
+6
View File
@@ -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)