diff --git a/test/libyul/Parser.cpp b/test/libyul/Parser.cpp index caaf27196..2d9c8904b 100644 --- a/test/libyul/Parser.cpp +++ b/test/libyul/Parser.cpp @@ -78,7 +78,8 @@ boost::optional 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