mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f
This commit is contained in:
parent
f4dfe049f2
commit
c3fdf06df6
@ -187,6 +187,13 @@ TestCase::TestResult SemanticTest::runTest(ostream& _stream, string const& _line
|
||||
}
|
||||
else if (test.call().kind == FunctionCall::Kind::Balance)
|
||||
{
|
||||
test.setFailure(false);
|
||||
u256 balance = balanceAt(m_contractAddress);
|
||||
if (balance != test.call().value.value)
|
||||
success = false;
|
||||
// if (balanceAt(m_contractAddress) != test.call()va.lue)
|
||||
// success = false;
|
||||
// test.call().value = balnac
|
||||
}
|
||||
else if (test.call().kind == FunctionCall::Kind::Constructor)
|
||||
{
|
||||
|
@ -11,4 +11,4 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// f(), 27 wei -> FAILURE
|
||||
// balance: 0 wei
|
||||
// balance: 15 wei
|
||||
|
Loading…
Reference in New Issue
Block a user