Use raw string for tests.

This commit is contained in:
chriseth 2017-03-22 16:53:15 +01:00
parent 4755757c00
commit 3f1f0316c6

View File

@ -299,9 +299,21 @@ BOOST_AUTO_TEST_CASE(function_definitions_multiple_args)
BOOST_AUTO_TEST_CASE(function_calls)
{
parsePrintCompare(
"{\n function y()\n {\n }\n function f(a) -> (b)\n {\n }\n function g(a, b, c)\n {\n }\n g(1, mul(2, address), f(mul(2, caller)))\n y()\n}"
);
string source = R"({
function y()
{
}
function f(a) -> (b)
{
}
function g(a, b, c)
{
}
g(1, mul(2, address), f(mul(2, caller)))
y()
})";
boost::replace_all(source, "\t", " ");
parsePrintCompare(source);
}
BOOST_AUTO_TEST_SUITE_END()