aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-04-16 21:19:25 +0800
committerLiana Husikyan <liana@ethdev.com>2015-04-27 19:08:32 +0800
commit18475f8ae148ee797fbd649eb5bf7a870ed9957c (patch)
tree3c114d56673ae28891011732da10a8faf7c3bad0 /libsolidity/SolidityABIJSON.cpp
parentb129a201dbc7c7b8370f47af758e295e173b4e78 (diff)
downloaddexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.tar
dexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.tar.gz
dexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.tar.bz2
dexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.tar.lz
dexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.tar.xz
dexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.tar.zst
dexon-solidity-18475f8ae148ee797fbd649eb5bf7a870ed9957c.zip
test for resalts
Diffstat (limited to 'libsolidity/SolidityABIJSON.cpp')
-rw-r--r--libsolidity/SolidityABIJSON.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/libsolidity/SolidityABIJSON.cpp b/libsolidity/SolidityABIJSON.cpp
index f0e54a94..1ba0dc7b 100644
--- a/libsolidity/SolidityABIJSON.cpp
+++ b/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()
}