diff options
author | chriseth <chris@ethereum.org> | 2017-05-02 20:44:36 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-05-03 17:26:21 +0800 |
commit | e3ed3623c78befec9bd88261e6cbf534197d64a1 (patch) | |
tree | 611cfeb5ce3368ace195dc22fe1568e03929fe6d /test/libsolidity | |
parent | 1f058ea92c500a52313ffa9df4d9a7055ab3c05d (diff) | |
download | dexon-solidity-e3ed3623c78befec9bd88261e6cbf534197d64a1.tar.gz dexon-solidity-e3ed3623c78befec9bd88261e6cbf534197d64a1.tar.zst dexon-solidity-e3ed3623c78befec9bd88261e6cbf534197d64a1.zip |
More strict tests.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index ee4857aa..ace8ef46 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); } |