mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make tests more consistent in style
This commit is contained in:
@@ -2549,8 +2549,9 @@ BOOST_AUTO_TEST_CASE(event)
|
||||
if (_manually) {
|
||||
bytes32 s = 0x19dacbf83c5de6658e14cbf7bcae5c15eca2eedecf1c66fbca928e4d351bea0f;
|
||||
log3(bytes32(msg.value), s, bytes32(msg.sender), _id);
|
||||
} else
|
||||
} else {
|
||||
Deposit(msg.sender, _id, msg.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
)";
|
||||
|
||||
@@ -540,7 +540,7 @@ BOOST_AUTO_TEST_CASE(if_statement)
|
||||
{
|
||||
char const* text = "contract test {\n"
|
||||
" function fun(uint256 a) {\n"
|
||||
" if (a >= 8) return 2; else { var b = 7; }\n"
|
||||
" if (a >= 8) { return 2 }; else { var b = 7; }\n"
|
||||
" }\n"
|
||||
"}\n";
|
||||
BOOST_CHECK(successParse(text));
|
||||
|
||||
Reference in New Issue
Block a user