mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f
This commit is contained in:
parent
e03d910e4b
commit
02d01a994d
@ -8,11 +8,7 @@ contract C {
|
||||
function msgvalue() internal returns (uint) {
|
||||
return msg.value;
|
||||
}
|
||||
// TODO: remove this helper function once isoltest supports balance checking
|
||||
function balance() external returns (uint) {
|
||||
return address(this).balance;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// f(), 27 wei -> FAILURE
|
||||
// balance() -> 0
|
||||
// balance: 0 wei
|
||||
|
@ -103,11 +103,11 @@ vector<solidity::frontend::test::FunctionCall> TestFileParser::parseFunctionCall
|
||||
else if (accept(Token::Balance, true))
|
||||
{
|
||||
// Address is specified
|
||||
if (accept(Token::HexNumber, true))
|
||||
{
|
||||
}
|
||||
// expect(Token::Colon);
|
||||
expect(Token::Arrow);
|
||||
// if (accept(Token::HexNumber, true))
|
||||
// {
|
||||
// }
|
||||
expect(Token::Colon);
|
||||
// expect(Token::Arrow);
|
||||
call.expectations.failure = false;
|
||||
call.expectations.result.push_back(Parameter());
|
||||
// expectation encoded as value
|
||||
|
Loading…
Reference in New Issue
Block a user