Browse Source

test for resalts

cl-refactor
Liana Husikyan 10 years ago
parent
commit
39b4ec7ab7
  1. 21
      test/libsolidity/SolidityABIJSON.cpp

21
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()
}

Loading…
Cancel
Save