diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 21:45:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 21:45:26 +0800 |
commit | e289c36158701ba0b874051e9e426e270b0e38e2 (patch) | |
tree | 2d19dff8180f4c4a8d25ef7414820f57f3e265af /test/libsolidity/SolidityExpressionCompiler.cpp | |
parent | 975dddf1b17e50a13cebdabcf885dcc800bd1742 (diff) | |
parent | e6d250772d1a42c5ac113a4e045e8365805ee300 (diff) | |
download | dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.gz dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.zst dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.zip |
Merge pull request #4354 from ethereum/constructorSyntaxTests
Updates tests to new constructor syntax
Diffstat (limited to 'test/libsolidity/SolidityExpressionCompiler.cpp')
-rw-r--r-- | test/libsolidity/SolidityExpressionCompiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityExpressionCompiler.cpp b/test/libsolidity/SolidityExpressionCompiler.cpp index ce8f4fe4..5d5fb218 100644 --- a/test/libsolidity/SolidityExpressionCompiler.cpp +++ b/test/libsolidity/SolidityExpressionCompiler.cpp @@ -215,7 +215,7 @@ BOOST_AUTO_TEST_CASE(int_with_wei_ether_subdenomination) { char const* sourceCode = R"( contract test { - function test () { + constructor() { var x = 1 wei; } } @@ -230,7 +230,7 @@ BOOST_AUTO_TEST_CASE(int_with_szabo_ether_subdenomination) { char const* sourceCode = R"( contract test { - function test () { + constructor() { var x = 1 szabo; } } @@ -245,7 +245,7 @@ BOOST_AUTO_TEST_CASE(int_with_finney_ether_subdenomination) { char const* sourceCode = R"( contract test { - function test () + constructor() { var x = 1 finney; } @@ -261,7 +261,7 @@ BOOST_AUTO_TEST_CASE(int_with_ether_ether_subdenomination) { char const* sourceCode = R"( contract test { - function test () { + constructor() { var x = 1 ether; } } |