test for resalts

This commit is contained in:
Liana Husikyan 2015-04-16 15:19:25 +02:00
parent b129a201db
commit 18475f8ae1

View File

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