diff options
-rw-r--r-- | test/libyul/Parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libyul/Parser.cpp b/test/libyul/Parser.cpp index caaf2719..2d9c8904 100644 --- a/test/libyul/Parser.cpp +++ b/test/libyul/Parser.cpp @@ -78,7 +78,8 @@ boost::optional<Error> parseAndReturnFirstError(string const& _source, bool _all ErrorReporter errorReporter(errors); if (!parse(_source, errorReporter)) { - BOOST_REQUIRE_EQUAL(errors.size(), 1); + BOOST_REQUIRE(!errors.empty()); + BOOST_CHECK_EQUAL(errors.size(), 1); return *errors.front(); } else |