summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/unicode/Client.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-06-03 14:34:16 -0400
committerBernard Normier <bernard@zeroc.com>2016-06-03 14:34:16 -0400
commit608fa468eaf3f7ae6ae483b6bc11863acec068fb (patch)
tree8e8f588e245da31dab8b18ac01401ae4e17e7de6 /cpp/test/IceUtil/unicode/Client.cpp
parentRefactored string converters and use codecvt_utf8[_utf16] when (diff)
downloadice-608fa468eaf3f7ae6ae483b6bc11863acec068fb.tar.bz2
ice-608fa468eaf3f7ae6ae483b6bc11863acec068fb.tar.xz
ice-608fa468eaf3f7ae6ae483b6bc11863acec068fb.zip
Improved unicode test
Diffstat (limited to 'cpp/test/IceUtil/unicode/Client.cpp')
-rw-r--r--cpp/test/IceUtil/unicode/Client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/test/IceUtil/unicode/Client.cpp b/cpp/test/IceUtil/unicode/Client.cpp
index b340252d010..a10bbea2e74 100644
--- a/cpp/test/IceUtil/unicode/Client.cpp
+++ b/cpp/test/IceUtil/unicode/Client.cpp
@@ -206,7 +206,8 @@ main(int argc, char* argv[])
string ns = IceUtil::wstringToString(ws);
- test(ns.length() == 10);
+ const string good = "\xE2\x82\xAC\xE2\x82\xAC\xF0\x90\x90\xB7";
+ test(ns == good);
test(ws == IceUtil::stringToWstring(ns));
cout << "ok" << endl;