diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-21 05:33:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-21 05:33:14 +0800 |
commit | 70790d4729a8cee7d587bf274ed1733b255b2120 (patch) | |
tree | 888d535ad5698b41f6979622040c3dcce3d300ca /test/libsolidity/SolidityNatspecJSON.cpp | |
parent | dcc4083b231e3574a64b5b2a329a7401677610da (diff) | |
parent | 0f29ac4e563f60be781b31ed9ef2693e1a19dcc8 (diff) | |
download | dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.tar dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.tar.gz dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.tar.bz2 dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.tar.lz dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.tar.xz dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.tar.zst dexon-solidity-70790d4729a8cee7d587bf274ed1733b255b2120.zip |
Merge pull request #3532 from aarlt/libdevcore_new_json_api
Add new JSON API for better abstraction and for supporting strict JSON parsing
Diffstat (limited to 'test/libsolidity/SolidityNatspecJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityNatspecJSON.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityNatspecJSON.cpp b/test/libsolidity/SolidityNatspecJSON.cpp index fb09451f..e8906bb9 100644 --- a/test/libsolidity/SolidityNatspecJSON.cpp +++ b/test/libsolidity/SolidityNatspecJSON.cpp @@ -22,7 +22,7 @@ #include "../TestHelper.h" #include <string> -#include <json/json.h> +#include <libdevcore/JSON.h> #include <libsolidity/interface/CompilerStack.h> #include <libsolidity/interface/Exceptions.h> #include <libdevcore/Exceptions.h> @@ -55,7 +55,7 @@ public: else generatedDocumentation = m_compilerStack.natspecDev(m_compilerStack.lastContractName()); Json::Value expectedDocumentation; - m_reader.parse(_expectedDocumentationString, expectedDocumentation); + jsonParseStrict(_expectedDocumentationString, expectedDocumentation); BOOST_CHECK_MESSAGE( expectedDocumentation == generatedDocumentation, "Expected:\n" << expectedDocumentation.toStyledString() << @@ -73,7 +73,6 @@ public: private: CompilerStack m_compilerStack; - Json::Reader m_reader; }; BOOST_FIXTURE_TEST_SUITE(SolidityNatspecJSON, DocumentationChecker) |