aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityNatspecJSON.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-04-28 23:19:31 +0800
committerGitHub <noreply@github.com>2017-04-28 23:19:31 +0800
commitf33614e1f7c85126b8f1a6d007f5824f6dce237d (patch)
treeb4df5793a8dea9d59c8a407a786ac548f7dbbc7a /test/libsolidity/SolidityNatspecJSON.cpp
parentf9bccab7b744c786f1eb12fad5cc0e499d0f1075 (diff)
parenta6306a1d445e887d1542ab1e767c2322f994b47c (diff)
downloaddexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.tar
dexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.tar.gz
dexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.tar.bz2
dexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.tar.lz
dexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.tar.xz
dexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.tar.zst
dexon-solidity-f33614e1f7c85126b8f1a6d007f5824f6dce237d.zip
Merge pull request #2171 from ethereum/splitParseAndAnalyze
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));
}