aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExecutionFramework.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-11-30 05:46:52 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-11-30 05:54:28 +0800
commit25c5dd48deae72fc3afc1514271f668f04b6c5a4 (patch)
treec29cb2cbfbbcf6af19c186f408d32031c51a53cc /test/ExecutionFramework.h
parent0f1d0304eef9777c002f86134e4d6ec7b4d53385 (diff)
downloaddexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.tar
dexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.tar.gz
dexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.tar.bz2
dexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.tar.lz
dexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.tar.xz
dexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.tar.zst
dexon-solidity-25c5dd48deae72fc3afc1514271f668f04b6c5a4.zip
Rename testSolidityAgainstCpp* to testContractAgainstCpp*
Diffstat (limited to 'test/ExecutionFramework.h')
-rw-r--r--test/ExecutionFramework.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h
index 6c5a5764..1274d400 100644
--- a/test/ExecutionFramework.h
+++ b/test/ExecutionFramework.h
@@ -99,30 +99,30 @@ public:
}
template <class CppFunction, class... Args>
- void testSolidityAgainstCpp(std::string _sig, CppFunction const& _cppFunction, Args const&... _arguments)
+ void testContractAgainstCpp(std::string _sig, CppFunction const& _cppFunction, Args const&... _arguments)
{
- bytes solidityResult = callContractFunction(_sig, _arguments...);
+ bytes contractResult = callContractFunction(_sig, _arguments...);
bytes cppResult = callCppAndEncodeResult(_cppFunction, _arguments...);
BOOST_CHECK_MESSAGE(
- solidityResult == cppResult,
- "Computed values do not match.\nSolidity: " +
- toHex(solidityResult) +
+ contractResult == cppResult,
+ "Computed values do not match.\nContract: " +
+ toHex(contractResult) +
"\nC++: " +
toHex(cppResult)
);
}
template <class CppFunction, class... Args>
- void testSolidityAgainstCppOnRange(std::string _sig, CppFunction const& _cppFunction, u256 const& _rangeStart, u256 const& _rangeEnd)
+ void testContractAgainstCppOnRange(std::string _sig, CppFunction const& _cppFunction, u256 const& _rangeStart, u256 const& _rangeEnd)
{
for (u256 argument = _rangeStart; argument < _rangeEnd; ++argument)
{
- bytes solidityResult = callContractFunction(_sig, argument);
+ bytes contractResult = callContractFunction(_sig, argument);
bytes cppResult = callCppAndEncodeResult(_cppFunction, argument);
BOOST_CHECK_MESSAGE(
- solidityResult == cppResult,
- "Computed values do not match.\nSolidity: " +
- toHex(solidityResult) +
+ contractResult == cppResult,
+ "Computed values do not match.\nContract: " +
+ toHex(contractResult) +
"\nC++: " +
toHex(cppResult) +
"\nArgument: " +