diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityInterface.cpp | 3 |
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))})); } |