diff options
author | chriseth <c@ethdev.com> | 2016-10-20 00:43:42 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:18 +0800 |
commit | 87b148494bcf1dd4814fafe658dd81fef79cf8b4 (patch) | |
tree | c2b4a81c04d6fde77c980e141046e1fbf3262663 /test/libsolidity/SolidityParser.cpp | |
parent | ff3553a34895c70c473a27c29464ebfc15375416 (diff) | |
download | dexon-solidity-87b148494bcf1dd4814fafe658dd81fef79cf8b4.tar.gz dexon-solidity-87b148494bcf1dd4814fafe658dd81fef79cf8b4.tar.zst dexon-solidity-87b148494bcf1dd4814fafe658dd81fef79cf8b4.zip |
Tests.
Diffstat (limited to 'test/libsolidity/SolidityParser.cpp')
-rw-r--r-- | test/libsolidity/SolidityParser.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp index b1b1d858..796da782 100644 --- a/test/libsolidity/SolidityParser.cpp +++ b/test/libsolidity/SolidityParser.cpp @@ -1325,11 +1325,14 @@ BOOST_AUTO_TEST_CASE(calling_function) BOOST_CHECK(successParse(text)); } -BOOST_AUTO_TEST_CASE(array_of_functions) +BOOST_AUTO_TEST_CASE(mapping_and_array_of_functions) { char const* text = R"( contract test { - mapping (address => function() internal returns ()) stages; + mapping (address => function() internal returns (uint)) a; + mapping (address => function() external) b; + mapping (address => function() external[]) c; + function() external[] d; } )"; BOOST_CHECK(successParse(text)); |