mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Fix test cases
This commit is contained in:
parent
6b078693e5
commit
683314ab7a
1 changed files with 7 additions and 7 deletions
|
|
@ -1279,19 +1279,19 @@ TEST(KiwiCpp, AnalyzeError01)
|
|||
TEST(KiwiCpp, NormalizeCoda)
|
||||
{
|
||||
Kiwi& kiwi = reuseKiwiInstance();
|
||||
TokenResult res = kiwi.analyze(u"키윜ㅋㅋ", Match::allWithNormalizing);
|
||||
TokenResult res = kiwi.analyze(u"키윜ㅋㅋ", Match::allWithNormalizing | Match::oovChrModel);
|
||||
EXPECT_EQ(res.first.back().str, std::u16string{ u"ㅋㅋㅋ" });
|
||||
res = kiwi.analyze(u"키윟ㅎ", Match::allWithNormalizing);
|
||||
res = kiwi.analyze(u"키윟ㅎ", Match::allWithNormalizing | Match::oovChrModel);
|
||||
EXPECT_EQ(res.first.back().str, std::u16string{ u"ㅎㅎ" });
|
||||
res = kiwi.analyze(u"키윅ㄱ", Match::allWithNormalizing);
|
||||
res = kiwi.analyze(u"키윅ㄱ", Match::allWithNormalizing | Match::oovChrModel);
|
||||
EXPECT_EQ(res.first.back().str, std::u16string{ u"ㄱㄱ" });
|
||||
res = kiwi.analyze(u"키윈ㄴㄴ", Match::allWithNormalizing);
|
||||
res = kiwi.analyze(u"키윈ㄴㄴ", Match::allWithNormalizing | Match::oovChrModel);
|
||||
EXPECT_EQ(res.first.back().str, std::u16string{ u"ㄴㄴㄴ" });
|
||||
res = kiwi.analyze(u"키윊ㅎㅎ", Match::allWithNormalizing);
|
||||
res = kiwi.analyze(u"키윊ㅎㅎ", Match::allWithNormalizing | Match::oovChrModel);
|
||||
EXPECT_EQ(res.first.back().str, std::u16string{ u"ㅎㅎ" });
|
||||
res = kiwi.analyze(u"키윍ㄱㄱ", Match::allWithNormalizing);
|
||||
res = kiwi.analyze(u"키윍ㄱㄱ", Match::allWithNormalizing | Match::oovChrModel);
|
||||
EXPECT_EQ(res.first.back().str, std::u16string{u"ㄱㄱ"});
|
||||
}
|
||||
}
|
||||
|
||||
TEST(KiwiCpp, ZCoda)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue