This commit is contained in:
Alex Beregszaszi 2020-12-14 13:28:40 +00:00
parent f4dfe049f2
commit c3fdf06df6
2 changed files with 8 additions and 1 deletions

View File

@ -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)
{

View File

@ -11,4 +11,4 @@ contract C {
}
// ----
// f(), 27 wei -> FAILURE
// balance: 0 wei
// balance: 15 wei