Do not use obscure CompilerStack methods in tests

This commit is contained in:
Alex Beregszaszi
2017-07-18 16:14:25 +01:00
parent 0eab808ece
commit 075715cf15
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -45,7 +45,9 @@ public:
bool _userDocumentation
)
{
ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parseAndAnalyze("pragma solidity >=0.0;\n" + _code), "Parsing failed");
m_compilerStack.reset(false);
m_compilerStack.addSource("", "pragma solidity >=0.0;\n" + _code);
ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parseAndAnalyze(), "Parsing contract failed");
Json::Value generatedDocumentation;
if (_userDocumentation)