diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-22 04:49:58 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-19 06:54:32 +0800 |
commit | 2ce35b77becab2395dce218b106a7ce904a1b141 (patch) | |
tree | a495989b6c5eabeb1620bc71fef36fad252e6d6c /test/libsolidity/SolidityNatspecJSON.cpp | |
parent | 039cc25b1fd875e9f4cfd0f0649f2b4ed67640e1 (diff) | |
download | dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.gz dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.tar.zst dexon-solidity-2ce35b77becab2395dce218b106a7ce904a1b141.zip |
Implement CompilerStack.lastContractName()
Diffstat (limited to 'test/libsolidity/SolidityNatspecJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityNatspecJSON.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityNatspecJSON.cpp b/test/libsolidity/SolidityNatspecJSON.cpp index d83773bc..fb09451f 100644 --- a/test/libsolidity/SolidityNatspecJSON.cpp +++ b/test/libsolidity/SolidityNatspecJSON.cpp @@ -51,9 +51,9 @@ public: Json::Value generatedDocumentation; if (_userDocumentation) - generatedDocumentation = m_compilerStack.natspecUser(""); + generatedDocumentation = m_compilerStack.natspecUser(m_compilerStack.lastContractName()); else - generatedDocumentation = m_compilerStack.natspecDev(""); + generatedDocumentation = m_compilerStack.natspecDev(m_compilerStack.lastContractName()); Json::Value expectedDocumentation; m_reader.parse(_expectedDocumentationString, expectedDocumentation); BOOST_CHECK_MESSAGE( |