diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-06 19:58:08 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-06 21:37:20 +0800 |
commit | 4534ff8792ad9849845457ff063ed0d3f2a2181a (patch) | |
tree | c1e094e3e4af27d253e6b4e09e3d848dbc9ec3d6 /SolidityABIJSON.cpp | |
parent | 4cd659c51d36eb03b4734ea8d2a2f246af9fac41 (diff) | |
download | dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.tar dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.tar.gz dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.tar.bz2 dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.tar.lz dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.tar.xz dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.tar.zst dexon-solidity-4534ff8792ad9849845457ff063ed0d3f2a2181a.zip |
Adding ETH_TEST macros to ABI and EndToEndTests
Diffstat (limited to 'SolidityABIJSON.cpp')
-rw-r--r-- | SolidityABIJSON.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/SolidityABIJSON.cpp b/SolidityABIJSON.cpp index 10873b5a..5f67a566 100644 --- a/SolidityABIJSON.cpp +++ b/SolidityABIJSON.cpp @@ -20,7 +20,7 @@ * Unit tests for the solidity compiler JSON Interface output. */ -#include <boost/test/unit_test.hpp> +#include "TestHelper.h" #include <libsolidity/CompilerStack.h> #include <json/json.h> #include <libdevcore/Exceptions.h> @@ -39,15 +39,7 @@ public: void checkInterface(std::string const& _code, std::string const& _expectedInterfaceString) { - try - { - m_compilerStack.parse(_code); - } - catch(boost::exception const& _e) - { - auto msg = std::string("Parsing contract failed with: ") + boost::diagnostic_information(_e); - BOOST_FAIL(msg); - } + ETH_TEST_REQUIRE_NO_THROW(m_compilerStack.parse(_code), "Parsing contract failed"); std::string generatedInterfaceString = m_compilerStack.getMetadata("", DocumentationType::ABIInterface); Json::Value generatedInterface; m_reader.parse(generatedInterfaceString, generatedInterface); |