aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityEndToEndTest.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-02-12 18:54:44 +0800
committerChristian <c@ethdev.com>2015-02-12 18:54:44 +0800
commit6bbba2269010cde1fe524ea6d41f2fe985d727ff (patch)
tree8fee3f511b5604da935854f187b95a82d433999a /SolidityEndToEndTest.cpp
parentd37f6cfb9f04d4148228784521147bf39584be92 (diff)
downloaddexon-solidity-6bbba2269010cde1fe524ea6d41f2fe985d727ff.tar.gz
dexon-solidity-6bbba2269010cde1fe524ea6d41f2fe985d727ff.tar.zst
dexon-solidity-6bbba2269010cde1fe524ea6d41f2fe985d727ff.zip
Another try in fixing windows build.
Diffstat (limited to 'SolidityEndToEndTest.cpp')
-rw-r--r--SolidityEndToEndTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/SolidityEndToEndTest.cpp b/SolidityEndToEndTest.cpp
index 8a21290c..1bfb55f6 100644
--- a/SolidityEndToEndTest.cpp
+++ b/SolidityEndToEndTest.cpp
@@ -963,7 +963,7 @@ BOOST_AUTO_TEST_CASE(multiple_elementary_accessors)
compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("data()") == encodeArgs(8));
BOOST_CHECK(callContractFunction("name()") == encodeArgs("Celina"));
- BOOST_CHECK(callContractFunction("a_hash()") == encodeArgs(dev::sha3(bytes{0x7b})));
+ BOOST_CHECK(callContractFunction("a_hash()") == encodeArgs(dev::sha3(bytes(1, 0x7b))));
BOOST_CHECK(callContractFunction("an_address()") == encodeArgs(toBigEndian(u160(0x1337))));
BOOST_CHECK(callContractFunction("super_secret_data()") == bytes());
}
@@ -2203,7 +2203,7 @@ BOOST_AUTO_TEST_CASE(sha3_multiple_arguments_with_numeric_literals)
dev::sha3(
toBigEndian(u256(10)) +
bytes{0x0, 0xc} +
- bytes{0x91})));
+ bytes(1, 0x91))));
}
BOOST_AUTO_TEST_CASE(sha3_multiple_arguments_with_string_literals)
@@ -2227,7 +2227,7 @@ BOOST_AUTO_TEST_CASE(sha3_multiple_arguments_with_string_literals)
dev::sha3(
toBigEndian(u256(10)) +
bytes{0x0, 0xc} +
- bytes{0x91} +
+ bytes(1, 0x91) +
bytes{0x66, 0x6f, 0x6f})));
}