From c99b200ed2d72500eb1c6cf118ab002a250a8198 Mon Sep 17 00:00:00 2001 From: "D.Miwa" Date: Wed, 1 May 2024 09:00:27 +0900 Subject: [PATCH] =?UTF-8?q?MinGW=E3=81=AE=E3=83=93=E3=83=AB=E3=83=89?= =?UTF-8?q?=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unittests/test-ccodebase.cpp | 6 +++--- tests/unittests/test-cwordparse.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unittests/test-ccodebase.cpp b/tests/unittests/test-ccodebase.cpp index 1a8a272998..4e1b5febab 100644 --- a/tests/unittests/test-ccodebase.cpp +++ b/tests/unittests/test-ccodebase.cpp @@ -815,7 +815,7 @@ TEST(CCodeBase, Utf8ToHex) EXPECT_STREQ(L"F09F9AB9", pCodeBase->CodeToHex(L"\U0001F6B9", sStatusbar).c_str()); // IVS(Ideographic Variation Sequence) 「葛󠄀」(葛󠄀城市の葛󠄀、下がヒ) - EXPECT_STREQ(L"E8919BF3A08480", pCodeBase->CodeToHex(L"葛󠄀", sStatusbar).c_str()); + EXPECT_STREQ(L"E8919BF3A08480", pCodeBase->CodeToHex(L"\U0000845B\U000E0100"/*葛󠄀*/, sStatusbar).c_str()); } /*! @@ -855,8 +855,8 @@ TEST(CCodeBase, UnicodeToHex) sStatusbar.m_bDispSPCodepoint = false; sStatusbar.m_bDispSPCodepoint = true; - EXPECT_STREQ(L"845B, U+E0100", pCodeBase->CodeToHex(L"葛󠄀", sStatusbar).c_str()); + EXPECT_STREQ(L"845B, U+E0100", pCodeBase->CodeToHex(L"\U0000845B\U000E0100"/*葛󠄀*/, sStatusbar).c_str()); sStatusbar.m_bDispSPCodepoint = false; - EXPECT_STREQ(L"845B, DB40DD00", pCodeBase->CodeToHex(L"葛󠄀", sStatusbar).c_str()); + EXPECT_STREQ(L"845B, DB40DD00", pCodeBase->CodeToHex(L"\U0000845B\U000E0100"/*葛󠄀*/, sStatusbar).c_str()); } diff --git a/tests/unittests/test-cwordparse.cpp b/tests/unittests/test-cwordparse.cpp index 0837e51c7d..1126dc3888 100644 --- a/tests/unittests/test-cwordparse.cpp +++ b/tests/unittests/test-cwordparse.cpp @@ -143,7 +143,7 @@ TEST(WhatKindOfChar, SurrogatePairs) TEST(WhatKindOfChar, IVS) { // EXPECT_EQ(CK_ETC, CWordParse::WhatKindOfChar(L"葛󠄀", 3, 0)); - EXPECT_EQ(CK_ZEN_ETC, CWordParse::WhatKindOfChar(L"葛󠄀", 3, 0)); + EXPECT_EQ(CK_ZEN_ETC, CWordParse::WhatKindOfChar(L"\U0000845B\U000E0100"/*葛󠄀*/, 3, 0)); } TEST(WhatKindOfTwoChars, ReturnsSameKindIfTwoKindsAreIdentical)