mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test.
This commit is contained in:
parent
22f2c6df63
commit
6b028701a0
@ -4219,6 +4219,19 @@ BOOST_AUTO_TEST_CASE(inline_assembly_storage_in_modifiers)
|
|||||||
BOOST_CHECK(expectError(text, false) == Error::Type::DeclarationError);
|
BOOST_CHECK(expectError(text, false) == Error::Type::DeclarationError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(invalid_mobile_type)
|
||||||
|
{
|
||||||
|
char const* text = R"(
|
||||||
|
contract C {
|
||||||
|
function f() {
|
||||||
|
// Invalid number
|
||||||
|
[1, 78901234567890123456789012345678901234567890123456789345678901234567890012345678012345678901234567];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)";
|
||||||
|
BOOST_CHECK(expectError(text, false) == Error::Type::TypeError);
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user