aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityNatspecJSON.cpp
diff options
context:
space:
mode:
authordjuju <julfaber@gmail.com>2017-04-26 23:03:36 +0800
committerdjuju <julfaber@gmail.com>2017-04-27 18:38:24 +0800
commit99a7aefb752f6b97475fb48da9c1c01d87af3056 (patch)
tree38cb1023e6a0cd01a93a009abd59d1e4194eefed /test/libsolidity/SolidityNatspecJSON.cpp
parent3cbdf6d490c6871d58f12f877cdc84111a7325c1 (diff)
downloaddexon-solidity-99a7aefb752f6b97475fb48da9c1c01d87af3056.tar.gz
dexon-solidity-99a7aefb752f6b97475fb48da9c1c01d87af3056.tar.zst
dexon-solidity-99a7aefb752f6b97475fb48da9c1c01d87af3056.zip
refactoring parse() into two separate functions
Diffstat (limited to 'test/libsolidity/SolidityNatspecJSON.cpp')
-rw-r--r--test/libsolidity/SolidityNatspecJSON.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityNatspecJSON.cpp b/test/libsolidity/SolidityNatspecJSON.cpp
index ac55382b..78c1a0ee 100644
--- a/test/libsolidity/SolidityNatspecJSON.cpp
+++ b/test/libsolidity/SolidityNatspecJSON.cpp
@@ -45,7 +45,7 @@ public:
bool _userDocumentation
)
{
- ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parse("pragma solidity >=0.0;\n" + _code), "Parsing failed");
+ ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parseAndAnalyze("pragma solidity >=0.0;\n" + _code), "Parsing failed");
Json::Value generatedDocumentation;
if (_userDocumentation)
@@ -63,7 +63,7 @@ public:
void expectNatspecError(std::string const& _code)
{
- BOOST_CHECK(!m_compilerStack.parse(_code));
+ BOOST_CHECK(!m_compilerStack.parseAndAnalyze(_code));
BOOST_REQUIRE(Error::containsErrorOfType(m_compilerStack.errors(), Error::Type::DocstringParsingError));
}