From e3ed3623c78befec9bd88261e6cbf534197d64a1 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 2 May 2017 14:44:36 +0200 Subject: [PATCH] More strict tests. --- test/libsolidity/SolidityNameAndTypeResolution.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index ee4857aa4..ace8ef462 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -262,7 +262,7 @@ BOOST_AUTO_TEST_CASE(name_shadowing) char const* text = R"( contract test { uint256 variable; - function f() { uint32 variable; variable; } + function f() { uint32 variable; variable = 2; } } )"; CHECK_SUCCESS(text); @@ -5640,7 +5640,7 @@ BOOST_AUTO_TEST_CASE(warn_unused_param) CHECK_WARNING(text, "Unused"); text = R"( contract C { - function f(uint) { + function f(uint a) { } } )"; @@ -5662,7 +5662,7 @@ BOOST_AUTO_TEST_CASE(warn_unused_return_param) } } )"; - success(text); + CHECK_SUCCESS_NO_WARNINGS(text); text = R"( contract C { function f() returns (uint a) { @@ -5670,7 +5670,7 @@ BOOST_AUTO_TEST_CASE(warn_unused_return_param) } } )"; - success(text); + CHECK_SUCCESS_NO_WARNINGS(text); text = R"( contract C { function f() returns (uint a) { @@ -5678,7 +5678,7 @@ BOOST_AUTO_TEST_CASE(warn_unused_return_param) } } )"; - success(text); + CHECK_SUCCESS_NO_WARNINGS(text); } BOOST_AUTO_TEST_CASE(no_unused_warnings) @@ -5691,7 +5691,7 @@ BOOST_AUTO_TEST_CASE(no_unused_warnings) } } )"; - success(text); + CHECK_SUCCESS_NO_WARNINGS(text); } BOOST_AUTO_TEST_CASE(no_unused_dec_after_use) @@ -5704,7 +5704,7 @@ BOOST_AUTO_TEST_CASE(no_unused_dec_after_use) } } )"; - success(text); + CHECK_SUCCESS_NO_WARNINGS(text); }