From 25c5dd48deae72fc3afc1514271f668f04b6c5a4 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 29 Nov 2016 21:46:52 +0000 Subject: Rename testSolidityAgainstCpp* to testContractAgainstCpp* --- test/ExecutionFramework.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/ExecutionFramework.h') 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 - 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 - 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: " + -- cgit