aboutsummaryrefslogtreecommitdiff
path: root/tests/utf32.cpp
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-09-01 18:46:16 +0300
committerAlon Zakai <alonzakai@gmail.com>2013-09-10 14:39:32 -0700
commitad8acfe6add300ff7968d4f12affaefc1b29f887 (patch)
tree824e9abb37d5aae2420a26d61fb4b0a3783583c2 /tests/utf32.cpp
parentdaebf68a22609cdce86f8dca699a0a945d56c9ab (diff)
Update utf32 test to contain non-BMP characters in the test string.
Diffstat (limited to 'tests/utf32.cpp')
-rw-r--r--tests/utf32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utf32.cpp b/tests/utf32.cpp
index 810704d3..526efe76 100644
--- a/tests/utf32.cpp
+++ b/tests/utf32.cpp
@@ -6,7 +6,7 @@
// This code tests that utf32-encoded std::wstrings can be marshalled between C++ and JS.
int main() {
- std::wstring wstr = L"abc\u2603\u20AC123"; // U+2603 is snowman, U+20AC is the Euro sign.
+ std::wstring wstr = L"abc\u2603\u20AC\U0002007C123 --- abc\u2603\u20AC\U0002007C123"; // U+2603 is snowman, U+20AC is the Euro sign, U+2007C is a Chinese Han character that looks like three raindrops.
const int len = (wstr.length()+1)*4;
char *memory = new char[len];