diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-06-03 14:34:16 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-06-03 14:34:16 -0400 |
commit | 608fa468eaf3f7ae6ae483b6bc11863acec068fb (patch) | |
tree | 8e8f588e245da31dab8b18ac01401ae4e17e7de6 /cpp/test/IceUtil/unicode/Client.cpp | |
parent | Refactored string converters and use codecvt_utf8[_utf16] when (diff) | |
download | ice-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.cpp | 3 |
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; |