diff options
author | chriseth <c@ethdev.com> | 2015-06-16 23:20:41 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-16 23:20:41 +0800 |
commit | 6e9f58622846e2ce24ce5caa3c24d12f44dfc96d (patch) | |
tree | 9fe4af2693b8aeab82b2f867f53acdf4b4f4e74e /libsolidity | |
parent | bc74cd0a3c0ca6a18ff8bae3f468e45115ae37e1 (diff) | |
download | dexon-solidity-6e9f58622846e2ce24ce5caa3c24d12f44dfc96d.tar.gz dexon-solidity-6e9f58622846e2ce24ce5caa3c24d12f44dfc96d.tar.zst dexon-solidity-6e9f58622846e2ce24ce5caa3c24d12f44dfc96d.zip |
Type conversion specialities for storage references.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/SolidityEndToEndTest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/SolidityEndToEndTest.cpp b/libsolidity/SolidityEndToEndTest.cpp index f4d875e7..109481ed 100644 --- a/libsolidity/SolidityEndToEndTest.cpp +++ b/libsolidity/SolidityEndToEndTest.cpp @@ -4243,9 +4243,9 @@ BOOST_AUTO_TEST_CASE(return_string) function get1() returns (string r) { return s; } -// function get2() returns (string r) { -// r = s; -// } + function get2() returns (string r) { + r = s; + } } )"; compileAndRun(sourceCode, 0, "Main"); @@ -4253,8 +4253,8 @@ BOOST_AUTO_TEST_CASE(return_string) bytes args = encodeArgs(u256(0x20), u256(s.length()), s); BOOST_REQUIRE(callContractFunction("set(string)", asString(args)) == encodeArgs()); BOOST_CHECK(callContractFunction("get1()") == args); -// BOOST_CHECK(callContractFunction("get2()") == args); -// BOOST_CHECK(callContractFunction("s()") == args); + BOOST_CHECK(callContractFunction("get2()") == args); + BOOST_CHECK(callContractFunction("s()") == args); } BOOST_AUTO_TEST_SUITE_END() |