aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorDenton Liu <liu.denton+github@gmail.com>2016-08-25 03:31:59 +0800
committerDenton Liu <liu.denton+github@gmail.com>2016-08-27 01:33:42 +0800
commitff756bc94d7129844f8f3492cc07807a78b973bc (patch)
treea2418dea3d2e5da316321bc93fb6af05b71b0667 /test/libsolidity
parentd2144b03c7ef6f7189ba289f5df1a445c68f3b68 (diff)
downloaddexon-solidity-ff756bc94d7129844f8f3492cc07807a78b973bc.tar.gz
dexon-solidity-ff756bc94d7129844f8f3492cc07807a78b973bc.tar.zst
dexon-solidity-ff756bc94d7129844f8f3492cc07807a78b973bc.zip
Make tests more consistent in style
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp3
-rw-r--r--test/libsolidity/SolidityParser.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index 8a61907a..8f645170 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -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);
+ }
}
}
)";
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index 909d18c9..07cb0751 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -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));