diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-30 21:32:25 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-30 21:32:25 +0800 |
commit | 57432fe671110335b3779f4b03a76df133ee927d (patch) | |
tree | ef3c0676d62b5852492d9c932d2c02c4daece6f5 | |
parent | d82a3ca956c0db1061df92c04220e935b6fa58d1 (diff) | |
download | dexon-solidity-57432fe671110335b3779f4b03a76df133ee927d.tar.gz dexon-solidity-57432fe671110335b3779f4b03a76df133ee927d.tar.zst dexon-solidity-57432fe671110335b3779f4b03a76df133ee927d.zip |
no need to have target json for failing tests
-rw-r--r-- | SolidityNatspecJSON.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/SolidityNatspecJSON.cpp b/SolidityNatspecJSON.cpp index 4e6c9855..aeaad196 100644 --- a/SolidityNatspecJSON.cpp +++ b/SolidityNatspecJSON.cpp @@ -238,7 +238,7 @@ BOOST_AUTO_TEST_CASE(dev_documenting_nonexistant_param) " function mul(uint a, uint second) returns(uint d) { return a * 7 + second; }\n" "}\n"; - BOOST_CHECK_THROW(checkNatspec(sourceCode, natspec, false), DocstringParsingError); + BOOST_CHECK_THROW(checkNatspec(sourceCode, "", false), DocstringParsingError); } BOOST_AUTO_TEST_CASE(dev_mutiline_param_description) @@ -498,17 +498,7 @@ BOOST_AUTO_TEST_CASE(dev_title_at_function_error) " function mul(uint a, uint second) returns(uint d) { return a * 7 + second; }\n" "}\n"; - char const* natspec = "{" - " \"author\": \"Lefteris\"," - " \"title\": \"Just a test contract\"," - " \"methods\":{" - " \"mul(uint256,uint256)\":{ \n" - " \"details\": \"Mul function\"\n" - " }\n" - " }\n" - "}"; - - BOOST_CHECK_THROW(checkNatspec(sourceCode, natspec, false), DocstringParsingError); + BOOST_CHECK_THROW(checkNatspec(sourceCode, "", false), DocstringParsingError); } BOOST_AUTO_TEST_CASE(natspec_notice_without_tag) |