aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-31 00:40:56 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-31 01:46:28 +0800
commitdeeca7bc5d968e90d65c3ce094ae1e93c3844637 (patch)
tree660b0abb2bd197c1a1c436e8427fa3992c753737
parent0a1a8bfb09f996ad288baf4f195d621e143de7d9 (diff)
downloaddexon-solidity-deeca7bc5d968e90d65c3ce094ae1e93c3844637.tar.gz
dexon-solidity-deeca7bc5d968e90d65c3ce094ae1e93c3844637.tar.zst
dexon-solidity-deeca7bc5d968e90d65c3ce094ae1e93c3844637.zip
Reformat test for extraction tool
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index 38d7124c..ddaa81d8 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -4807,7 +4807,9 @@ BOOST_AUTO_TEST_CASE(non_payable_constructor)
BOOST_AUTO_TEST_CASE(warn_nonpresent_pragma)
{
- char const* text = "contract C {}";
+ char const* text = R"(
+ contract C {}
+ )";
auto sourceAndError = parseAnalyseAndReturnError(text, true, false);
BOOST_REQUIRE(!sourceAndError.second.empty());
BOOST_REQUIRE(!!sourceAndError.first);