aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-03-22 23:53:15 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:49:03 +0800
commit3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58 (patch)
tree6034baedb1d4281eeb135c036f937ea9a6fdb39c /test
parent4755757c00885be3a9b8dc2b714c90bc45985efe (diff)
downloaddexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.tar
dexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.tar.gz
dexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.tar.bz2
dexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.tar.lz
dexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.tar.xz
dexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.tar.zst
dexon-solidity-3f1f0316c686f46600f3ab9ed4c65cda9bcc8a58.zip
Use raw string for tests.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/InlineAssembly.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/test/libsolidity/InlineAssembly.cpp b/test/libsolidity/InlineAssembly.cpp
index 3c9e5552..42aa66a0 100644
--- a/test/libsolidity/InlineAssembly.cpp
+++ b/test/libsolidity/InlineAssembly.cpp
@@ -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()