aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-04 18:23:58 +0800
committerchriseth <chris@ethereum.org>2018-12-04 18:37:03 +0800
commit7698b0b63fc41f1633e3a719519f9af97082a5c2 (patch)
treee7f0a6f95e6042cd998c5104602920c104dbeaea /test
parentd829794737233e23b0aa53d0360fa9f626209ba0 (diff)
downloaddexon-solidity-7698b0b63fc41f1633e3a719519f9af97082a5c2.tar.gz
dexon-solidity-7698b0b63fc41f1633e3a719519f9af97082a5c2.tar.zst
dexon-solidity-7698b0b63fc41f1633e3a719519f9af97082a5c2.zip
Do not stop if there is more than one error.
Diffstat (limited to 'test')
-rw-r--r--test/libyul/Parser.cpp3
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