mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
moved the test
Conflicts: test/libsolidity/SolidityEndToEndTest.cpp test/libsolidity/SolidityNameAndTypeResolution.cpp
This commit is contained in:
parent
466f5a4b88
commit
9d44e65932
@ -5233,6 +5233,7 @@ BOOST_AUTO_TEST_CASE(storage_string_as_mapping_key_without_variable)
|
||||
BOOST_CHECK(callContractFunction("f()") == encodeArgs(u256(2)));
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
BOOST_AUTO_TEST_CASE(library_call)
|
||||
{
|
||||
char const* sourceCode = R"(
|
||||
@ -5279,6 +5280,8 @@ BOOST_AUTO_TEST_CASE(array_out_of_bound_access)
|
||||
compileRequireThrow<TypeError>(sourceCode);
|
||||
}
|
||||
|
||||
=======
|
||||
>>>>>>> 6920415... moved the test
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
}
|
||||
|
@ -2250,10 +2250,23 @@ BOOST_AUTO_TEST_CASE(creating_contract_within_the_contract)
|
||||
function f() { var x = new Test(); }
|
||||
}
|
||||
)";
|
||||
|
||||
BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode), TypeError);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(array_out_of_bound_access)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract c {
|
||||
uint[2] dataArray;
|
||||
function set5th() returns (bool) {
|
||||
dataArray[5] = 2;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
)";
|
||||
BOOST_CHECK_THROW(parseTextAndResolveNames(text), TypeError);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user