aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-03-04 01:25:50 +0800
committerGitHub <noreply@github.com>2017-03-04 01:25:50 +0800
commitcfbbd89dafca57e450f6b4433eb258e6a7f52310 (patch)
tree52a31928bfbe1c32ada53ec1008438a931cb2c98 /test/libsolidity/SolidityEndToEndTest.cpp
parent6bfd894f46d12f78e2ea49a58f96763a077bcf49 (diff)
parent4b1e8111cc2469808d08e1718d3edd64b2cc4484 (diff)
downloaddexon-solidity-cfbbd89dafca57e450f6b4433eb258e6a7f52310.tar.gz
dexon-solidity-cfbbd89dafca57e450f6b4433eb258e6a7f52310.tar.zst
dexon-solidity-cfbbd89dafca57e450f6b4433eb258e6a7f52310.zip
Merge pull request #1702 from ethereum/assertError
Change effect of assert to invalid opcode.
Diffstat (limited to 'test/libsolidity/SolidityEndToEndTest.cpp')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index cb0cc168..130b0d3a 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -9119,24 +9119,24 @@ BOOST_AUTO_TEST_CASE(invalid_instruction)
BOOST_CHECK(callContractFunction("f()") == encodeArgs());
}
-BOOST_AUTO_TEST_CASE(assert)
-{
- char const* sourceCode = R"(
- contract C {
- function f() {
- assert(false);
- }
- function g(bool val) returns (bool) {
- assert(val == true);
- return true;
- }
- }
- )";
- compileAndRun(sourceCode, 0, "C");
- BOOST_CHECK(callContractFunction("f()") == encodeArgs());
- BOOST_CHECK(callContractFunction("g(bool)", false) == encodeArgs());
- BOOST_CHECK(callContractFunction("g(bool)", true) == encodeArgs(true));
-}
+//BOOST_AUTO_TEST_CASE(assert)
+//{
+// char const* sourceCode = R"(
+// contract C {
+// function f() {
+// assert(false);
+// }
+// function g(bool val) returns (bool) {
+// assert(val == true);
+// return true;
+// }
+// }
+// )";
+// compileAndRun(sourceCode, 0, "C");
+// BOOST_CHECK(callContractFunction("f()") == encodeArgs());
+// BOOST_CHECK(callContractFunction("g(bool)", false) == encodeArgs());
+// BOOST_CHECK(callContractFunction("g(bool)", true) == encodeArgs(true));
+//}
BOOST_AUTO_TEST_CASE(revert)
{