aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-09-06 17:34:10 +0800
committerGitHub <noreply@github.com>2017-09-06 17:34:10 +0800
commit5922306193c85127d9166b734c818dae1f284f2b (patch)
treef2d347123c011c92660a6e514950773086a58bd9 /test
parentfb1db58def97a740b70dd74bf521a15a8fb1190a (diff)
parent3326a2282e4bf5b83b14bc775a821806a204817e (diff)
downloaddexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.tar
dexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.tar.gz
dexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.tar.bz2
dexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.tar.lz
dexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.tar.xz
dexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.tar.zst
dexon-solidity-5922306193c85127d9166b734c818dae1f284f2b.zip
Merge pull request #2873 from ethereum/largearray
Change array too large error message as it is valid for non-calldata too
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp6
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)