From 44e42bf52e481f4f653a669291812b4d31f06022 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 6 Oct 2015 13:01:55 +0200 Subject: Add structs to library interface. --- test/libsolidity/SolidityInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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 expectedFunctions({"function f(uint256[] x,Lib.Str y,Lib.E z);"}); + BOOST_CHECK(contract.isLibrary()); + set expectedFunctions({"function f(uint256[] x,Lib.Str storage y,Lib.E z);"}); BOOST_REQUIRE_EQUAL(1, contract.definedFunctions().size()); BOOST_CHECK(expectedFunctions == set({sourcePart(*contract.definedFunctions().at(0))})); } -- cgit