aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-06 19:01:55 +0800
committerchriseth <c@ethdev.com>2015-10-06 20:20:06 +0800
commit44e42bf52e481f4f653a669291812b4d31f06022 (patch)
tree66bb56b0554a65f55470e13d0d9a3cf963abf70a /test/libsolidity
parentbf5b387954f93371e2c8fc77c01cbc709f570954 (diff)
downloaddexon-solidity-44e42bf52e481f4f653a669291812b4d31f06022.tar.gz
dexon-solidity-44e42bf52e481f4f653a669291812b4d31f06022.tar.zst
dexon-solidity-44e42bf52e481f4f653a669291812b4d31f06022.zip
Add structs to library interface.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityInterface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityInterface.cpp b/test/libsolidity/SolidityInterface.cpp
index 4006968a..f0d2be20 100644
--- a/test/libsolidity/SolidityInterface.cpp
+++ b/test/libsolidity/SolidityInterface.cpp
@@ -152,7 +152,8 @@ BOOST_AUTO_TEST_CASE(libraries)
}
)";
ContractDefinition const& contract = checkInterface(sourceCode);
- set<string> expectedFunctions({"function f(uint256[] x,Lib.Str y,Lib.E z);"});
+ BOOST_CHECK(contract.isLibrary());
+ set<string> expectedFunctions({"function f(uint256[] x,Lib.Str storage y,Lib.E z);"});
BOOST_REQUIRE_EQUAL(1, contract.definedFunctions().size());
BOOST_CHECK(expectedFunctions == set<string>({sourcePart(*contract.definedFunctions().at(0))}));
}