diff options
author | chriseth <c@ethdev.com> | 2016-11-09 17:48:45 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-09 17:48:45 +0800 |
commit | 63bde109a1dfa0e4726f9b479923db305aa25a2a (patch) | |
tree | ef1c7e45de543f1281deba3fe4828b29b457064e /test | |
parent | 88547a1c660f330614ad1a9621f06a93d989bd09 (diff) | |
download | dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.tar dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.tar.gz dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.tar.bz2 dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.tar.lz dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.tar.xz dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.tar.zst dexon-solidity-63bde109a1dfa0e4726f9b479923db305aa25a2a.zip |
Fail if parsing fails in type checker tests.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 83292501..099c3c00 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -57,7 +57,7 @@ parseAnalyseAndReturnError(string const& _source, bool _reportWarnings = false, { sourceUnit = parser.parse(std::make_shared<Scanner>(CharStream(source))); if(!sourceUnit) - return make_pair(sourceUnit, nullptr); + BOOST_FAIL("Parsing failed in type checker test."); SyntaxChecker syntaxChecker(errors); if (!syntaxChecker.checkSyntax(*sourceUnit)) |