diff options
author | chriseth <chris@ethereum.org> | 2018-05-18 17:57:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-18 17:57:15 +0800 |
commit | 4d7b092cb4eabf7722b1161fda225e36097debc1 (patch) | |
tree | 656cd9480ea57aec1e34a057dc7002ffb4c4ac36 /test/libsolidity/SolidityOptimizer.cpp | |
parent | 4aa2f036ce74d9a210e12ac4df928a5ecb006e28 (diff) | |
parent | 0bed065ee73c467014d5464a7d9dc2596d6e7dfc (diff) | |
download | dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.gz dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.bz2 dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.lz dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.xz dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.tar.zst dexon-solidity-4d7b092cb4eabf7722b1161fda225e36097debc1.zip |
Merge pull request #4150 from ethereum/isoltest
Tidy up tests to always have closing braces on the proper line
Diffstat (limited to 'test/libsolidity/SolidityOptimizer.cpp')
-rw-r--r-- | test/libsolidity/SolidityOptimizer.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityOptimizer.cpp b/test/libsolidity/SolidityOptimizer.cpp index 5326feaf..afce1823 100644 --- a/test/libsolidity/SolidityOptimizer.cpp +++ b/test/libsolidity/SolidityOptimizer.cpp @@ -139,7 +139,8 @@ BOOST_AUTO_TEST_CASE(smoke_test) function f(uint a) returns (uint b) { return a; } - })"; + } + )"; compileBothVersions(sourceCode); compareVersions("f(uint256)", u256(7)); } @@ -151,7 +152,8 @@ BOOST_AUTO_TEST_CASE(identities) function f(int a) returns (int b) { return int(0) | (int(1) * (int(0) ^ (0 + a))); } - })"; + } + )"; compileBothVersions(sourceCode); compareVersions("f(int256)", u256(0x12334664)); } @@ -165,7 +167,8 @@ BOOST_AUTO_TEST_CASE(unused_expressions) 10 + 20; data; } - })"; + } + )"; compileBothVersions(sourceCode); compareVersions("f()"); } @@ -180,7 +183,8 @@ BOOST_AUTO_TEST_CASE(constant_folding_both_sides) function f(uint x) returns (uint y) { return 98 ^ (7 * ((1 | (x | 1000)) * 40) ^ 102); } - })"; + } + )"; compileBothVersions(sourceCode); compareVersions("f(uint256)", 7); } |