diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-07-11 00:39:26 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-07-11 00:39:38 +0800 |
commit | 0c5e0e0d59dc55fcfe5b95a8c649a7a769ad3400 (patch) | |
tree | e6181dba547a13c0455ca67eac853daaa3971e71 /test/libsolidity | |
parent | b750ca9741aba47cc8ba650a04dd620725ed4610 (diff) | |
download | dexon-solidity-0c5e0e0d59dc55fcfe5b95a8c649a7a769ad3400.tar.gz dexon-solidity-0c5e0e0d59dc55fcfe5b95a8c649a7a769ad3400.tar.zst dexon-solidity-0c5e0e0d59dc55fcfe5b95a8c649a7a769ad3400.zip |
Added assertion and tests suggestions
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index ae92810d..d1466ea8 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -802,7 +802,7 @@ BOOST_AUTO_TEST_CASE(nested_for_loop_multiple_local_vars) } } if (x > 30) { - return 42; + return 42; uint b = 0xcafe; } } @@ -9494,7 +9494,9 @@ BOOST_AUTO_TEST_CASE(break_in_modifier) } } function f() run { - x++; + uint k = x; + uint t = k + 1; + x = t; } } )"; @@ -9516,7 +9518,9 @@ BOOST_AUTO_TEST_CASE(continue_in_modifier) } } function f() run { - x++; + uint k = x; + uint t = k + 1; + x = t; } } )"; @@ -9538,7 +9542,9 @@ BOOST_AUTO_TEST_CASE(return_in_modifier) } } function f() run { - x++; + uint k = x; + uint t = k + 1; + x = t; } } )"; @@ -9560,7 +9566,9 @@ BOOST_AUTO_TEST_CASE(stacked_return_with_modifiers) } } function f() run { - x++; + uint k = x; + uint t = k + 1; + x = t; } } )"; |