mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge remote-tracking branch 'upstream/develop' into NewStateTests
This commit is contained in:
commit
87a76faadd
@ -330,11 +330,11 @@ void checkStorage(map<u256, u256> _expectedStore, map<u256, u256> _resultStore,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
BOOST_CHECK_EQUAL(_resultStore.size(), _expectedStore.size());
|
BOOST_CHECK_EQUAL(_resultStore.size(), _expectedStore.size());
|
||||||
#ifndef __WIN32__
|
|
||||||
for (auto&& resultStorePair : _resultStore)
|
for (auto&& resultStorePair : _resultStore)
|
||||||
|
{
|
||||||
if (!_expectedStore.count(resultStorePair.first))
|
if (!_expectedStore.count(resultStorePair.first))
|
||||||
BOOST_ERROR(_expectedAddr << ": unexpected store key " << resultStorePair.first);
|
BOOST_ERROR(_expectedAddr << ": unexpected store key " << resultStorePair.first);
|
||||||
#endif
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void checkLog(LogEntries _resultLogs, LogEntries _expectedLogs)
|
void checkLog(LogEntries _resultLogs, LogEntries _expectedLogs)
|
||||||
|
@ -402,7 +402,7 @@ BOOST_AUTO_TEST_CASE(empty_string_on_stack)
|
|||||||
" }\n"
|
" }\n"
|
||||||
"}\n";
|
"}\n";
|
||||||
compileAndRun(sourceCode);
|
compileAndRun(sourceCode);
|
||||||
BOOST_CHECK(callContractFunction(0, bytes({0x02})) == bytes({0x00, 0x02, (byte)'a', (byte)'b', (byte)'c', 0x00}));
|
BOOST_CHECK(callContractFunction(0, bytes({0x02})) == bytes({0x00, 0x02, 0x61/*'a'*/, 0x62/*'b'*/, 0x63/*'c'*/, 0x00}));
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(state_smoke_test)
|
BOOST_AUTO_TEST_CASE(state_smoke_test)
|
||||||
|
Loading…
Reference in New Issue
Block a user