aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-03-05 20:28:27 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-03-05 20:28:27 +0800
commit298bdeec4921bd30c055a790976542989710b867 (patch)
tree764e314e0ee0fa65cfe045ece2c1f4ed5391d22d /test/libsolidity
parentc633c0eacba12e940b12c6ff58b5c6c55dc0122c (diff)
downloaddexon-solidity-298bdeec4921bd30c055a790976542989710b867.tar
dexon-solidity-298bdeec4921bd30c055a790976542989710b867.tar.gz
dexon-solidity-298bdeec4921bd30c055a790976542989710b867.tar.bz2
dexon-solidity-298bdeec4921bd30c055a790976542989710b867.tar.lz
dexon-solidity-298bdeec4921bd30c055a790976542989710b867.tar.xz
dexon-solidity-298bdeec4921bd30c055a790976542989710b867.tar.zst
dexon-solidity-298bdeec4921bd30c055a790976542989710b867.zip
Remove unstable test case.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index e61afb0e..c352a2c2 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -2481,25 +2481,6 @@ BOOST_AUTO_TEST_CASE(gas_and_value_basic)
BOOST_REQUIRE(callContractFunction("checkState()") == encodeArgs(false, 20 - 5));
}
-BOOST_AUTO_TEST_CASE(gas_left)
-{
- char const* sourceCode = R"(
- contract test {
- function getGasLeft() public returns (uint256 val) { return msg.gas; }
- }
- )";
- compileAndRun(sourceCode);
- BOOST_REQUIRE(callContractFunction("getGasLeft()") == encodeArgs(99978604));
-
- sourceCode = R"(
- contract test {
- function getGasLeft() public returns (uint256 val) { return gasleft(); }
- }
- )";
- compileAndRun(sourceCode);
- BOOST_REQUIRE(callContractFunction("getGasLeft()") == encodeArgs(99978604));
-}
-
BOOST_AUTO_TEST_CASE(value_complex)
{
char const* sourceCode = R"(