Style and stricter tests.

This commit is contained in:
chriseth
2017-05-02 15:48:58 +02:00
parent e544698ad3
commit 96870686a9
2 changed files with 10 additions and 4 deletions
@@ -3943,7 +3943,7 @@ BOOST_AUTO_TEST_CASE(rational_unary_operation)
}
}
)";
CHECK_SUCCESS(text);
CHECK_SUCCESS_NO_WARNINGS(text);
text = R"(
contract test {
function f() {
@@ -3953,6 +3953,14 @@ BOOST_AUTO_TEST_CASE(rational_unary_operation)
}
)";
CHECK_WARNING(text,"Use of unary + is deprecated");
text = R"(
contract test {
function f(uint x) {
uint y = +x;
}
}
)";
CHECK_WARNING(text,"Use of unary + is deprecated");
}
BOOST_AUTO_TEST_CASE(leading_zero_rationals_convert)