aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ViewPureChecker.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-02-13 06:26:13 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-02-13 06:39:42 +0800
commit573aa01fd2a208a119a77fe75129d76a59392abc (patch)
tree64b350c111d48ff6e315d02710fcca4896b8f159 /test/libsolidity/ViewPureChecker.cpp
parent3ddbf1617fb8d981131d2df5a48fa0a2615f83a2 (diff)
downloaddexon-solidity-573aa01fd2a208a119a77fe75129d76a59392abc.tar.gz
dexon-solidity-573aa01fd2a208a119a77fe75129d76a59392abc.tar.zst
dexon-solidity-573aa01fd2a208a119a77fe75129d76a59392abc.zip
Adjust tests for multiple errors with the var keyword
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r--test/libsolidity/ViewPureChecker.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp
index 837f9aa9..e91e713c 100644
--- a/test/libsolidity/ViewPureChecker.cpp
+++ b/test/libsolidity/ViewPureChecker.cpp
@@ -136,10 +136,12 @@ BOOST_AUTO_TEST_CASE(environment_access)
}
for (string const& x: pure)
{
- CHECK_WARNING(
+ CHECK_WARNING_ALLOW_MULTI(
"contract C { function f() view public { var x = " + x + "; x; } }",
- "restricted to pure"
- );
+ (std::vector<std::string>{
+ "Function state mutability can be restricted to pure",
+ "Use of the \"var\" keyword is deprecated."
+ }));
}
}