diff options
author | chriseth <chris@ethereum.org> | 2017-06-16 22:41:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 22:41:59 +0800 |
commit | 3abadc7122f4075c64a44332507d140af17f50b5 (patch) | |
tree | 4ec51d834bc48e27975f6c39690b957a0d7d6949 /test | |
parent | 17de4a0756ad86b6facbf592dce2a4c32ef7585c (diff) | |
parent | c1f5016e16a29e3ce4bfe86dde2b42c3704d54c0 (diff) | |
download | dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.tar dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.tar.gz dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.tar.bz2 dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.tar.lz dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.tar.xz dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.tar.zst dexon-solidity-3abadc7122f4075c64a44332507d140af17f50b5.zip |
Merge pull request #2386 from ethereum/utf8-fix
Fix UTF-8 validation for high codepoints (>10000)
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 70934543..0b3cb481 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -2422,6 +2422,16 @@ BOOST_AUTO_TEST_CASE(invalid_utf8_explicit) CHECK_ERROR(sourceCode, TypeError, "Explicit type conversion not allowed"); } +BOOST_AUTO_TEST_CASE(large_utf8_codepoint) +{ + char const* sourceCode = R"( + contract C { + string s = "\xf0\x9f\xa6\x84"; + } + )"; + CHECK_SUCCESS(sourceCode); +} + BOOST_AUTO_TEST_CASE(string_index) { char const* sourceCode = R"( |