diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-06 19:06:12 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-06 21:37:20 +0800 |
commit | 79bbe1e5d81947436b00febd7aa75246c47eabd6 (patch) | |
tree | c0661c43376d7a2087e62163f516adab9592cc27 /SolidityExpressionCompiler.cpp | |
parent | 10c666fb52271f1100888676e70ad43aa65c8cdf (diff) | |
download | dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.tar dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.tar.gz dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.tar.bz2 dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.tar.lz dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.tar.xz dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.tar.zst dexon-solidity-79bbe1e5d81947436b00febd7aa75246c47eabd6.zip |
Move ETH_TEST() Macros to TestHelper.h
- Also use them in Solidity Parser
Diffstat (limited to 'SolidityExpressionCompiler.cpp')
-rw-r--r-- | SolidityExpressionCompiler.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/SolidityExpressionCompiler.cpp b/SolidityExpressionCompiler.cpp index e9d9a49e..7034085e 100644 --- a/SolidityExpressionCompiler.cpp +++ b/SolidityExpressionCompiler.cpp @@ -30,7 +30,7 @@ #include <libsolidity/CompilerContext.h> #include <libsolidity/ExpressionCompiler.h> #include <libsolidity/AST.h> -#include <boost/test/unit_test.hpp> +#include "TestHelper.h" using namespace std; @@ -44,23 +44,6 @@ namespace test namespace { -// LTODO: Move to some more generic location. We really need it -/// Make sure that no Exception is thrown during testing. If one is thrown show its info. -/// @param _expression The expression for which to make sure no exceptions are thrown -/// @param _message A message to act as a prefix to the expression's error information -#define ETH_TEST_REQUIRE_NO_THROW(_expression, _message) \ - do { \ - try \ - { \ - _expression; \ - } \ - catch (boost::exception const& _e) \ - { \ - auto msg = std::string(_message) + boost::diagnostic_information(_e); \ - BOOST_FAIL(msg); \ - } \ - }while (0) - /// Helper class that extracts the first expression in an AST. class FirstExpressionExtractor: private ASTVisitor { |