diff options
author | chriseth <c@ethdev.com> | 2017-02-24 02:42:38 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2017-02-24 02:43:40 +0800 |
commit | 4b1e8111cc2469808d08e1718d3edd64b2cc4484 (patch) | |
tree | 782afbf5c4381182c73dbdec8b5f273bd4bc00b9 /test | |
parent | 811bb770c51bc63f9ccb2bff014482ba9c760132 (diff) | |
download | dexon-solidity-4b1e8111cc2469808d08e1718d3edd64b2cc4484.tar.gz dexon-solidity-4b1e8111cc2469808d08e1718d3edd64b2cc4484.tar.zst dexon-solidity-4b1e8111cc2469808d08e1718d3edd64b2cc4484.zip |
Remove assert for now.
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityEndToEndTest.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp index 68f8fbef..19665a26 100644 --- a/test/libsolidity/SolidityEndToEndTest.cpp +++ b/test/libsolidity/SolidityEndToEndTest.cpp @@ -9083,24 +9083,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) { |