Also run some end to end tests via yul.

This commit is contained in:
chriseth 2019-05-07 17:31:23 +02:00
parent e43df3b72a
commit 701aed4beb

View File

@ -43,6 +43,13 @@ using namespace std;
using namespace std::placeholders; using namespace std::placeholders;
using namespace dev::test; using namespace dev::test;
#define ALSO_VIA_YUL(CODE) \
{ \
{ CODE } \
m_compileViaYul = true; \
{ CODE } \
}
namespace dev namespace dev
{ {
namespace solidity namespace solidity
@ -92,8 +99,10 @@ BOOST_AUTO_TEST_CASE(empty_contract)
char const* sourceCode = R"( char const* sourceCode = R"(
contract test { } contract test { }
)"; )";
compileAndRun(sourceCode); ALSO_VIA_YUL(
BOOST_CHECK(callContractFunction("i_am_not_there()", bytes()).empty()); compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("i_am_not_there()", bytes()).empty());
)
} }
BOOST_AUTO_TEST_CASE(exp_operator) BOOST_AUTO_TEST_CASE(exp_operator)