diff options
author | Daniel Ellison <daniel@syrinx.net> | 2016-12-02 20:45:42 +0800 |
---|---|---|
committer | Daniel Ellison <daniel@syrinx.net> | 2016-12-07 00:16:56 +0800 |
commit | 1b6861e6c99ff244180eec8aac9dee50d6e45520 (patch) | |
tree | c83878f94ac65c2eb96c4c948bfd4b4f20e3ac3a | |
parent | b201e148fad222b1a1fe276211126305026e6168 (diff) | |
download | dexon-solidity-1b6861e6c99ff244180eec8aac9dee50d6e45520.tar.gz dexon-solidity-1b6861e6c99ff244180eec8aac9dee50d6e45520.tar.zst dexon-solidity-1b6861e6c99ff244180eec8aac9dee50d6e45520.zip |
Added 'panic' tests.
-rw-r--r-- | test/liblll/EndToEndTest.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/liblll/EndToEndTest.cpp b/test/liblll/EndToEndTest.cpp index b5e32e94..824e53cd 100644 --- a/test/liblll/EndToEndTest.cpp +++ b/test/liblll/EndToEndTest.cpp @@ -43,6 +43,20 @@ BOOST_AUTO_TEST_CASE(smoke_test) 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() } |