aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2015-03-09 22:05:22 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2015-03-09 22:05:22 +0800
commit5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0 (patch)
tree5d59b64355b33260d7c702d4219253f2d2d089f9 /SolidityABIJSON.cpp
parent5fb44b241debf9230aea69b7708e204a88ba9d83 (diff)
parentd586a88f3cab21db88f31dd574daac4bb9a28b7d (diff)
downloaddexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.tar
dexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.tar.gz
dexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.tar.bz2
dexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.tar.lz
dexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.tar.xz
dexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.tar.zst
dexon-solidity-5cc0812d357e70614b9a0d78812ae7e6ecaa5ef0.zip
Merge remote-tracking branch 'upstream/develop' into evmjit
Diffstat (limited to 'SolidityABIJSON.cpp')
-rw-r--r--SolidityABIJSON.cpp12
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);