mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
utf-8 for test cpp
This commit is contained in:
parent
df8bca22c3
commit
8170836534
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user