mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add structs to library interface.
This commit is contained in:
@@ -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))}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user