diff options
author | chriseth <chris@ethereum.org> | 2018-02-10 06:54:05 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-12 23:41:31 +0800 |
commit | 676cf52264a5522ebdf77d096a15384336ea0566 (patch) | |
tree | 4d705e3e3519304519739ac4c134cb2d46699714 /test/libsolidity/SMTChecker.cpp | |
parent | 2095e7a32dce04f6142074bf96f14b6c7046137a (diff) | |
download | dexon-solidity-676cf52264a5522ebdf77d096a15384336ea0566.tar.gz dexon-solidity-676cf52264a5522ebdf77d096a15384336ea0566.tar.zst dexon-solidity-676cf52264a5522ebdf77d096a15384336ea0566.zip |
Support searching inside multiple errors.
Diffstat (limited to 'test/libsolidity/SMTChecker.cpp')
-rw-r--r-- | test/libsolidity/SMTChecker.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/libsolidity/SMTChecker.cpp b/test/libsolidity/SMTChecker.cpp index 2a1609cc..8c955292 100644 --- a/test/libsolidity/SMTChecker.cpp +++ b/test/libsolidity/SMTChecker.cpp @@ -42,7 +42,7 @@ public: } protected: - virtual std::pair<SourceUnit const*, std::shared_ptr<Error const>> + virtual std::pair<SourceUnit const*, ErrorList> parseAnalyseAndReturnError( std::string const& _source, bool _reportWarnings = false, @@ -102,8 +102,10 @@ BOOST_AUTO_TEST_CASE(warn_on_struct) } } )"; - /// Multiple warnings, should check for: Assertion checker does not yet implement this expression. - CHECK_WARNING_ALLOW_MULTI(text, ""); + CHECK_WARNING_ALLOW_MULTI(text, (vector<string>{ + "Assertion checker does not yet implement this expression.", + "Assertion checker does not yet support the type of this variable." + })); } BOOST_AUTO_TEST_CASE(simple_assert) |