diff options
Diffstat (limited to 'solidityParser.cpp')
-rw-r--r-- | solidityParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solidityParser.cpp b/solidityParser.cpp index 86d09f17..b1f27bcb 100644 --- a/solidityParser.cpp +++ b/solidityParser.cpp @@ -25,6 +25,7 @@ #include <libdevcore/Log.h> #include <libsolidity/Scanner.h> #include <libsolidity/Parser.h> +#include <libsolidity/Exceptions.h> #include <boost/test/unit_test.hpp> namespace dev { @@ -54,8 +55,7 @@ BOOST_AUTO_TEST_CASE(missing_variable_name_in_declaration) char const* text = "contract test {\n" " uint256 ;\n" "}\n"; - cwarn << "The next error is expected."; - BOOST_CHECK_THROW(parseText(text), std::exception); + BOOST_CHECK_THROW(parseText(text), ParserError); } BOOST_AUTO_TEST_CASE(empty_function) |