aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-10-13 23:51:46 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:17 +0800
commit6f19559de02e0bf2b53e743678d53a4ea0414eae (patch)
treed1b3c7532e06b6a2aa93a4bf61b9cb7b250542bc /test/libsolidity/SolidityEndToEndTest.cpp
parent97a3588701edafe9112f35272b5d4c6e23e574b9 (diff)
downloaddexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.gz
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.tar.zst
dexon-solidity-6f19559de02e0bf2b53e743678d53a4ea0414eae.zip
Fix some type checks and tests for internal / external function parameters.
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 0f392cab..709e63b2 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -7612,12 +7612,12 @@ BOOST_AUTO_TEST_CASE(calling_uninitialized_function)
contract C {
function intern() returns (uint) {
function (uint) internal returns (uint) x;
- x();
+ x(2);
return 7;
}
function extern() returns (uint) {
function (uint) external returns (uint) x;
- x();
+ x(2);
return 7;
}
}
@@ -7676,7 +7676,7 @@ BOOST_AUTO_TEST_CASE(store_function)
function addTwo(uint x) returns (uint) { return x + 2; }
}
contract C {
- function (unction (uint) external returns (uint)) returns (uint) ev = eval;
+ function (function (uint) external returns (uint)) returns (uint) ev = eval;
function (uint) external returns (uint) x;
function store(function(uint) external returns (uint) y) {
x = y;
@@ -7695,7 +7695,7 @@ BOOST_AUTO_TEST_CASE(store_function)
BOOST_CHECK(callContractFunction("t()") == encodeArgs(u256(9)));
}
-// TODO: public function state variables, arrays
+// TODO: arrays, libraries
BOOST_AUTO_TEST_CASE(shift_constant_left)
{