diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-11-22 18:07:23 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-11-24 00:38:41 +0800 |
commit | 2faaddca05549ecf3e716ec83faeffde6e8d4c2f (patch) | |
tree | 349820685dc3caa7301a28e5e12d520cf59b3596 /test | |
parent | cace51fc470f2ff75e52637e10aa5100f3ca5be6 (diff) | |
download | dexon-solidity-2faaddca05549ecf3e716ec83faeffde6e8d4c2f.tar.gz dexon-solidity-2faaddca05549ecf3e716ec83faeffde6e8d4c2f.tar.zst dexon-solidity-2faaddca05549ecf3e716ec83faeffde6e8d4c2f.zip |
interface: fix the substring search
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 57ee86d6..0022dfb2 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -165,7 +165,7 @@ do \ { \ Error err = expectError((text), (warning)); \ BOOST_CHECK(err.type() == (Error::Type::typ)); \ - BOOST_CHECK(err.regex_search({substring})); \ + BOOST_CHECK(err.searchForSubstring(substring)); \ } while(0) // [checkError(text, type, substring)] asserts that the compilation down to typechecking @@ -4104,7 +4104,7 @@ BOOST_AUTO_TEST_CASE(warn_nonpresent_pragma) auto sourceAndError = parseAnalyseAndReturnError(text, true, false); BOOST_REQUIRE(!!sourceAndError.second); BOOST_REQUIRE(!!sourceAndError.first); - BOOST_CHECK(sourceAndError.second->regex_search("Source file does not specify required compiler version!")); + BOOST_CHECK(sourceAndError.second->searchForSubstring("Source file does not specify required compiler version!")); } BOOST_AUTO_TEST_CASE(unsatisfied_version) |