aboutsummaryrefslogtreecommitdiffstats
path: root/test/liblll
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-06-15 18:18:00 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-02 18:56:33 +0800
commit334c023c7231810f28ca5ea04f14df3f722cea07 (patch)
treea64e19e9388e1ddc0381cc464cf4eceb19b4e339 /test/liblll
parenta5608b31a759031377ec91300ad7a470d48bb1d2 (diff)
downloaddexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.tar.gz
dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.tar.zst
dexon-solidity-334c023c7231810f28ca5ea04f14df3f722cea07.zip
Determine transaction status in RPC sessions.
Diffstat (limited to 'test/liblll')
-rw-r--r--test/liblll/EndToEndTest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/liblll/EndToEndTest.cpp b/test/liblll/EndToEndTest.cpp
index fd8099f2..ceaf450e 100644
--- a/test/liblll/EndToEndTest.cpp
+++ b/test/liblll/EndToEndTest.cpp
@@ -50,6 +50,7 @@ BOOST_AUTO_TEST_CASE(bare_panic)
{
char const* sourceCode = "(panic)";
compileAndRunWithoutCheck(sourceCode);
+ BOOST_REQUIRE(!m_transactionSuccessful);
BOOST_REQUIRE(m_output.empty());
}
@@ -57,6 +58,7 @@ BOOST_AUTO_TEST_CASE(panic)
{
char const* sourceCode = "{ (panic) }";
compileAndRunWithoutCheck(sourceCode);
+ BOOST_REQUIRE(!m_transactionSuccessful);
BOOST_REQUIRE(m_output.empty());
}
@@ -69,6 +71,7 @@ BOOST_AUTO_TEST_CASE(macro_zeroarg)
(zeroarg)))
)";
compileAndRun(sourceCode);
+ BOOST_CHECK(m_transactionSuccessful);
BOOST_CHECK(callFallback() == encodeArgs(u256(0x1234)));
}