updated attempt, a couple of more things to sort through and change

This commit is contained in:
RJ Catalano
2015-12-15 10:57:57 -06:00
parent 591a4f1ff4
commit 42c4339404
2 changed files with 20 additions and 4 deletions
+14
View File
@@ -1047,6 +1047,20 @@ BOOST_AUTO_TEST_CASE(using_for)
BOOST_CHECK(successParse(text));
}
BOOST_AUTO_TEST_CASE(inline_array_declaration)
{
char const* text = R"(
contract c {
uint[] a;
function f() returns (uint, uint) {
a = [1,2,3];
return (a[3], [3,4][0]);
}
}
)";
BOOST_CHECK(successParse(text));
}
BOOST_AUTO_TEST_SUITE_END()
}