diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-06 05:38:45 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-06 05:38:45 +0800 |
commit | 3326a2282e4bf5b83b14bc775a821806a204817e (patch) | |
tree | a4f97dc18102dc7f50366f35d5e8cc9a4d8355fa /test | |
parent | f242331cc0600e971fa24eede3d3dc36df30bc33 (diff) | |
download | dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.tar dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.tar.gz dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.tar.bz2 dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.tar.lz dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.tar.xz dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.tar.zst dexon-solidity-3326a2282e4bf5b83b14bc775a821806a204817e.zip |
Change array too large error message as it is valid for non-calldata too
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index a0537103..f8863876 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -6217,21 +6217,21 @@ BOOST_AUTO_TEST_CASE(too_large_arrays_for_calldata) } } )"; - CHECK_ERROR(text, TypeError, "Array is too large to be encoded as calldata."); + CHECK_ERROR(text, TypeError, "Array is too large to be encoded."); text = R"( contract C { function f(uint[85678901234] a) internal { } } )"; - CHECK_SUCCESS_NO_WARNINGS(text); + CHECK_ERROR(text, TypeError, "Array is too large to be encoded."); text = R"( contract C { function f(uint[85678901234] a) { } } )"; - CHECK_ERROR(text, TypeError, "Array is too large to be encoded as calldata."); + CHECK_ERROR(text, TypeError, "Array is too large to be encoded."); } BOOST_AUTO_TEST_CASE(explicit_literal_to_storage_string) |