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/ABIDecoderTests.cpp | |
parent | 975dddf1b17e50a13cebdabcf885dcc800bd1742 (diff) | |
parent | e6d250772d1a42c5ac113a4e045e8365805ee300 (diff) | |
download | dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.gz dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.bz2 dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.lz dexon-solidity-e289c36158701ba0b874051e9e426e270b0e38e2.tar.xz 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/ABIDecoderTests.cpp')
-rw-r--r-- | test/libsolidity/ABIDecoderTests.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/libsolidity/ABIDecoderTests.cpp b/test/libsolidity/ABIDecoderTests.cpp index b588ca1b..c122d806 100644 --- a/test/libsolidity/ABIDecoderTests.cpp +++ b/test/libsolidity/ABIDecoderTests.cpp @@ -287,7 +287,7 @@ BOOST_AUTO_TEST_CASE(decode_from_memory_simple) contract C { uint public _a; uint[] public _b; - function C(uint a, uint[] b) { + constructor(uint a, uint[] b) { _a = a; _b = b; } @@ -312,7 +312,7 @@ BOOST_AUTO_TEST_CASE(decode_function_type) string sourceCode = R"( contract D { function () external returns (uint) public _a; - function D(function () external returns (uint) a) { + constructor(function () external returns (uint) a) { _a = a; } } @@ -346,13 +346,13 @@ BOOST_AUTO_TEST_CASE(decode_function_type_array) string sourceCode = R"( contract D { function () external returns (uint)[] public _a; - function D(function () external returns (uint)[] a) { + constructor(function () external returns (uint)[] a) { _a = a; } } contract E { function () external returns (uint)[3] public _a; - function E(function () external returns (uint)[3] a) { + constructor(function () external returns (uint)[3] a) { _a = a; } } @@ -414,7 +414,7 @@ BOOST_AUTO_TEST_CASE(decode_from_memory_complex) uint public _a; uint[] public _b; bytes[2] public _c; - function C(uint a, uint[] b, bytes[2] c) { + constructor(uint a, uint[] b, bytes[2] c) { _a = a; _b = b; _c = c; |