mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Sort tests.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
contract C {
|
||||
uint256 v;
|
||||
|
||||
function f() public returns (bool) {
|
||||
uint256 startGas = gasleft();
|
||||
v++;
|
||||
assert(startGas > gasleft());
|
||||
return true;
|
||||
}
|
||||
|
||||
function g() public returns (bool) {
|
||||
uint256 startGas = gasleft();
|
||||
assert(startGas > gasleft());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// ----
|
||||
// f() -> true
|
||||
// g() -> true
|
||||
Reference in New Issue
Block a user