mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added 'panic' tests.
This commit is contained in:
parent
b201e148fa
commit
1b6861e6c9
@ -43,6 +43,20 @@ BOOST_AUTO_TEST_CASE(smoke_test)
|
|||||||
BOOST_CHECK(callFallback() == encodeArgs(string("test", 4)));
|
BOOST_CHECK(callFallback() == encodeArgs(string("test", 4)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(bare_panic)
|
||||||
|
{
|
||||||
|
char const* sourceCode = "(panic)";
|
||||||
|
compileAndRunWithoutCheck(sourceCode);
|
||||||
|
BOOST_REQUIRE(m_output.empty());
|
||||||
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(enclosed_panic)
|
||||||
|
{
|
||||||
|
char const* sourceCode = "(seq (panic))";
|
||||||
|
compileAndRunWithoutCheck(sourceCode);
|
||||||
|
BOOST_REQUIRE(m_output.empty());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE_END()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user