diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-18 21:34:22 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-18 23:14:25 +0800 |
commit | 075715cf151669058251c78b47c0b94fc913e74a (patch) | |
tree | 33b58cb3ceffed2c2893be6778f005bf763d9e5d /test/libsolidity/SolidityNatspecJSON.cpp | |
parent | 0eab808ececc9d7b835a5c174731c9eded04bf43 (diff) | |
download | dexon-solidity-075715cf151669058251c78b47c0b94fc913e74a.tar.gz dexon-solidity-075715cf151669058251c78b47c0b94fc913e74a.tar.zst dexon-solidity-075715cf151669058251c78b47c0b94fc913e74a.zip |
Do not use obscure CompilerStack methods in tests
Diffstat (limited to 'test/libsolidity/SolidityNatspecJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityNatspecJSON.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNatspecJSON.cpp b/test/libsolidity/SolidityNatspecJSON.cpp index 2a7376b9..aa343561 100644 --- a/test/libsolidity/SolidityNatspecJSON.cpp +++ b/test/libsolidity/SolidityNatspecJSON.cpp @@ -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) |