aboutsummaryrefslogtreecommitdiffstats
path: root/solidityJSONInterfaceTest.cpp
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-11-12 20:00:11 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-11-12 20:00:11 +0800
commita519e8350408582ef83207b4ff97056a4a7f79d7 (patch)
treedbaa4486d1b8608e20819e0268b1e37e40fb4270 /solidityJSONInterfaceTest.cpp
parent9ae6dcc5d14a87492158f030c88414138009c28d (diff)
downloaddexon-solidity-a519e8350408582ef83207b4ff97056a4a7f79d7.tar.gz
dexon-solidity-a519e8350408582ef83207b4ff97056a4a7f79d7.tar.zst
dexon-solidity-a519e8350408582ef83207b4ff97056a4a7f79d7.zip
solidity json interface tests fixes
Diffstat (limited to 'solidityJSONInterfaceTest.cpp')
-rw-r--r--solidityJSONInterfaceTest.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/solidityJSONInterfaceTest.cpp b/solidityJSONInterfaceTest.cpp
index fec9f7db..1a443087 100644
--- a/solidityJSONInterfaceTest.cpp
+++ b/solidityJSONInterfaceTest.cpp
@@ -20,9 +20,9 @@
* Unit tests for the solidity compiler JSON Interface output.
*/
+#include <boost/test/unit_test.hpp>
#include <libsolidity/CompilerStack.h>
#include <jsonrpc/json/json.h>
-#include <boost/test/unit_test.hpp>
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);