initializer-list fix

This commit is contained in:
ethdev 2014-12-17 12:19:10 +01:00
parent 9def93fab4
commit 30eb6334a2

View File

@ -1108,7 +1108,7 @@ BOOST_AUTO_TEST_CASE(constructor_arguments)
function getName() returns (string3 ret) { return h.getName(); }
})";
compileAndRun(sourceCode, 0, "Main");
BOOST_REQUIRE(callContractFunction(0) == bytes{0x01});
BOOST_REQUIRE(callContractFunction(0) == bytes({byte(0x01)}));
BOOST_REQUIRE(callContractFunction(1) == bytes({'a', 'b', 'c'}));
}