From 39b4ec7ab765007efe668fe2b7bf806b4bbb41aa Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Thu, 16 Apr 2015 15:19:25 +0200 Subject: [PATCH] test for resalts --- test/libsolidity/SolidityABIJSON.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp index f0e54a940..1ba0dc7bc 100644 --- a/test/libsolidity/SolidityABIJSON.cpp +++ b/test/libsolidity/SolidityABIJSON.cpp @@ -495,6 +495,27 @@ BOOST_AUTO_TEST_CASE(empty_name_return_parameter) checkInterface(sourceCode, interface); } +BOOST_AUTO_TEST_CASE(constructor_abi) +{ + char const* sourceCode = R"( + contract test { + function test() { + } + })"; + + char const* interface = R"(" + [ + { + "constant" : false, + "inputs" : [], + "name" : "test", + "outputs" : [], + "type" : "constructor" + } + ])"; + checkInterface(sourceCode, interface); +} + BOOST_AUTO_TEST_SUITE_END() }