mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove unstable test case.
This commit is contained in:
parent
c633c0eacb
commit
298bdeec49
@ -2481,25 +2481,6 @@ BOOST_AUTO_TEST_CASE(gas_and_value_basic)
|
|||||||
BOOST_REQUIRE(callContractFunction("checkState()") == encodeArgs(false, 20 - 5));
|
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)
|
BOOST_AUTO_TEST_CASE(value_complex)
|
||||||
{
|
{
|
||||||
char const* sourceCode = R"(
|
char const* sourceCode = R"(
|
||||||
|
Loading…
Reference in New Issue
Block a user