utf-8 for test cpp

This commit is contained in:
mutouyun 2021-08-07 18:37:23 +08:00
parent df8bca22c3
commit 8170836534

View File

@ -11,8 +11,8 @@
#include "libipc/platform/to_tchar.h"
TEST(Platform, to_tchar) {
char const *utf8 = "hello world, 低挫<EFBFBD>こんにちは";
wchar_t const *wstr = L"hello world, 低挫<EFBFBD>こんにちは";
char const *utf8 = "hello world, 你好,こんにちは";
wchar_t const *wstr = L"hello world, 你好,こんにちは";
{
ipc::string str = ipc::detail::to_tchar<char>(utf8);
EXPECT_STREQ(str.c_str(), utf8);