Adjust tests for multiple errors with the var keyword

This commit is contained in:
Alex Beregszaszi committed 2018-02-12 22:39:42 +00:00
1 parent 3ddbf1617f
commit 573aa01fd2
2 files changed
+25 -13

No files matched your search

+5 -3
View File
@@ -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."
}));
}
}