mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
parent
fe0c299ace
commit
10b66ce7e4
3 changed files with 9 additions and 7 deletions
|
|
@ -74,17 +74,17 @@ TEST(KiwiCpp, AnalyzeError01)
|
|||
TEST(KiwiCpp, NormalizeCoda)
|
||||
{
|
||||
Kiwi& kiwi = reuseKiwiInstance();
|
||||
TokenResult res = kiwi.analyze(u"키윜ㅋㅋ", Match::all);
|
||||
TokenResult res = kiwi.analyze(u"키윜ㅋㅋ", Match::allWithNormalizing);
|
||||
EXPECT_EQ(res.first[1].str, std::u16string{ u"ㅋㅋㅋ" });
|
||||
res = kiwi.analyze(u"키윟ㅎ", Match::all);
|
||||
res = kiwi.analyze(u"키윟ㅎ", Match::allWithNormalizing);
|
||||
EXPECT_EQ(res.first[1].str, std::u16string{ u"ㅎㅎ" });
|
||||
res = kiwi.analyze(u"키윅ㄱ", Match::all);
|
||||
res = kiwi.analyze(u"키윅ㄱ", Match::allWithNormalizing);
|
||||
EXPECT_EQ(res.first[1].str, std::u16string{ u"ㄱㄱ" });
|
||||
res = kiwi.analyze(u"키윈ㄴㄴ", Match::all);
|
||||
res = kiwi.analyze(u"키윈ㄴㄴ", Match::allWithNormalizing);
|
||||
EXPECT_EQ(res.first[1].str, std::u16string{ u"ㄴㄴㄴ" });
|
||||
res = kiwi.analyze(u"키윊ㅎㅎ", Match::all);
|
||||
res = kiwi.analyze(u"키윊ㅎㅎ", Match::allWithNormalizing);
|
||||
EXPECT_EQ(res.first[2].str, std::u16string{ u"ㅎㅎ" });
|
||||
res = kiwi.analyze(u"키윍ㄱㄱ", Match::all);
|
||||
res = kiwi.analyze(u"키윍ㄱㄱ", Match::allWithNormalizing);
|
||||
EXPECT_EQ(res.first[2].str, std::u16string{ u"ㄱㄱ" });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue