diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-05-08 19:08:52 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-07-03 21:31:34 +0800 |
commit | 717c70a88fe0a42286f758b93cca0cb0119ef406 (patch) | |
tree | 4b6e3125bab344e9014e420eca47236a588fdc5d /test/libsolidity/SolidityABIJSON.cpp | |
parent | f7153ee58a5b5a6bc37a535ef8243b992fe8b1b7 (diff) | |
download | dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.gz dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.bz2 dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.lz dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.xz dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.zst dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.zip |
Update test suite.
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r-- | test/libsolidity/SolidityABIJSON.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp index a3ebd139..6994a290 100644 --- a/test/libsolidity/SolidityABIJSON.cpp +++ b/test/libsolidity/SolidityABIJSON.cpp @@ -306,62 +306,6 @@ BOOST_AUTO_TEST_CASE(view_function) checkInterface(sourceCode, interface); } -// constant is an alias to view above -BOOST_AUTO_TEST_CASE(constant_function) -{ - char const* sourceCode = R"( - contract test { - function foo(uint a, uint b) returns(uint d) { return a + b; } - function boo(uint32 a) constant returns(uint b) { return a * 4; } - } - )"; - - char const* interface = R"([ - { - "name": "foo", - "constant": false, - "payable" : false, - "stateMutability": "nonpayable", - "type": "function", - "inputs": [ - { - "name": "a", - "type": "uint256" - }, - { - "name": "b", - "type": "uint256" - } - ], - "outputs": [ - { - "name": "d", - "type": "uint256" - } - ] - }, - { - "name": "boo", - "constant": true, - "payable" : false, - "stateMutability": "view", - "type": "function", - "inputs": [{ - "name": "a", - "type": "uint32" - }], - "outputs": [ - { - "name": "b", - "type": "uint256" - } - ] - } - ])"; - - checkInterface(sourceCode, interface); -} - BOOST_AUTO_TEST_CASE(pure_function) { char const* sourceCode = R"( |