added keyword type and some tests, changes in lexical cast

This commit is contained in:
RJ Catalano
2016-03-11 17:50:09 +01:00
committed by chriseth
parent d0bb87ae88
commit d0054a8d29
3 changed files with 25 additions and 11 deletions
@@ -3232,6 +3232,19 @@ BOOST_AUTO_TEST_CASE(int10abc_is_identifier)
BOOST_CHECK(success(text));
}
BOOST_AUTO_TEST_CASE(invalid_fixed_types)
{
char const* text = R"(
contract test {
function f() {
fixed0x7 a = .3;
fixed99999999999999999999999999999999999999x7 b = 9.5;
}
}
)";
BOOST_CHECK(!success(text));
}
BOOST_AUTO_TEST_CASE(library_functions_do_not_have_value)
{
char const* text = R"(