mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test unexpected storage entries
This commit is contained in:
parent
fda1fd586f
commit
0e187175b8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user