From a519e8350408582ef83207b4ff97056a4a7f79d7 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Wed, 12 Nov 2014 13:00:11 +0100 Subject: [PATCH] solidity json interface tests fixes --- solidityJSONInterfaceTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/solidityJSONInterfaceTest.cpp b/solidityJSONInterfaceTest.cpp index fec9f7db2..1a443087f 100644 --- a/solidityJSONInterfaceTest.cpp +++ b/solidityJSONInterfaceTest.cpp @@ -20,9 +20,9 @@ * Unit tests for the solidity compiler JSON Interface output. */ +#include #include #include -#include namespace dev { @@ -31,11 +31,12 @@ namespace solidity namespace test { -class InterfaceChecker { +class InterfaceChecker +{ public: bool checkInterface(std::string const& _code, std::string const& _expectedInterfaceString) { - m_compilerStack.compile(_code); + m_compilerStack.parse(_code); std::string generatedInterfaceString = m_compilerStack.getInterface(); Json::Value generatedInterface; m_reader.parse(generatedInterfaceString, generatedInterface);