More informative test

This commit is contained in:
Yoichi Hirai 2017-06-13 12:28:03 +02:00
parent 0909ffc26e
commit c4f0608b68
No known key found for this signature in database
GPG Key ID: E7B75D080FCF7992

View File

@ -284,11 +284,11 @@ BOOST_AUTO_TEST_CASE(zeroarg_macro)
char const* sourceCode = R"(
(returnlll
(seq
(def 'zeroarg () (asm INVALID))
(def 'zeroarg () (seq (mstore 0 0x1234) (return 0 32)))
(zeroarg)))
)";
compileAndRun(sourceCode);
BOOST_CHECK(callFallback() == encodeArgs());
BOOST_CHECK(callFallback() == encodeArgs(u256(0x1234)));
}
BOOST_AUTO_TEST_SUITE_END()