aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-12 01:06:33 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-12 19:53:00 +0800
commit0b411d98e9aea631bfbbf10e870800363e8f20dc (patch)
tree0ff8aee45355aaf061eb1601f3a58cd8b0569aa8
parentf3fc870e03cef67d1a8acc4cf49df574f324212a (diff)
downloaddexon-solidity-0b411d98e9aea631bfbbf10e870800363e8f20dc.tar.gz
dexon-solidity-0b411d98e9aea631bfbbf10e870800363e8f20dc.tar.zst
dexon-solidity-0b411d98e9aea631bfbbf10e870800363e8f20dc.zip
Removing uncecessary intermediate int conversion in log tests
-rw-r--r--SolidityEndToEndTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/SolidityEndToEndTest.cpp b/SolidityEndToEndTest.cpp
index c3116a99..1492f03c 100644
--- a/SolidityEndToEndTest.cpp
+++ b/SolidityEndToEndTest.cpp
@@ -1189,7 +1189,7 @@ BOOST_AUTO_TEST_CASE(log0)
{
char const* sourceCode = "contract test {\n"
" function a() {\n"
- " log0(bytes32(int(1)));\n"
+ " log0(bytes32(1));\n"
" }\n"
"}\n";
compileAndRun(sourceCode);
@@ -1204,7 +1204,7 @@ BOOST_AUTO_TEST_CASE(log1)
{
char const* sourceCode = "contract test {\n"
" function a() {\n"
- " log1(bytes32(int(1)), bytes32(int(2)));\n"
+ " log1(bytes32(1), bytes32(2));\n"
" }\n"
"}\n";
compileAndRun(sourceCode);
@@ -1220,7 +1220,7 @@ BOOST_AUTO_TEST_CASE(log2)
{
char const* sourceCode = "contract test {\n"
" function a() {\n"
- " log2(bytes32(int(1)), bytes32(int(2)), bytes32(int(3)));\n"
+ " log2(bytes32(1), bytes32(2), bytes32(3));\n"
" }\n"
"}\n";
compileAndRun(sourceCode);
@@ -1237,7 +1237,7 @@ BOOST_AUTO_TEST_CASE(log3)
{
char const* sourceCode = "contract test {\n"
" function a() {\n"
- " log3(bytes32(int(1)), bytes32(int(2)), bytes32(int(3)), bytes32(int(4)));\n"
+ " log3(bytes32(1), bytes32(2), bytes32(3), bytes32(4));\n"
" }\n"
"}\n";
compileAndRun(sourceCode);
@@ -1254,7 +1254,7 @@ BOOST_AUTO_TEST_CASE(log4)
{
char const* sourceCode = "contract test {\n"
" function a() {\n"
- " log4(bytes32(int(1)), bytes32(int(2)), bytes32(int(3)), bytes32(int(4)), bytes32(int(5)));\n"
+ " log4(bytes32(1), bytes32(2), bytes32(3), bytes32(4), bytes32(5));\n"
" }\n"
"}\n";
compileAndRun(sourceCode);
@@ -1271,7 +1271,7 @@ BOOST_AUTO_TEST_CASE(log_in_constructor)
{
char const* sourceCode = "contract test {\n"
" function test() {\n"
- " log1(bytes32(int(1)), bytes32(int(2)));\n"
+ " log1(bytes32(1), bytes32(2));\n"
" }\n"
"}\n";
compileAndRun(sourceCode);