mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Add test cases for single consonant morphemes
This commit is contained in:
parent
0fceff1057
commit
e25012aa5f
1 changed files with 10 additions and 0 deletions
|
|
@ -135,6 +135,16 @@ TEST(KiwiCpp, SingleResult)
|
|||
}
|
||||
}
|
||||
|
||||
TEST(KiwiCpp, SingleConsonantMorpheme)
|
||||
{
|
||||
Kiwi& kiwi = reuseKiwiInstance();
|
||||
auto res = kiwi.analyze(u"구원의 손길을 내민 시민들", Match::allWithNormalizing).first;
|
||||
EXPECT_EQ(res[4].str, u"내밀");
|
||||
|
||||
res = kiwi.analyze(u"서툰 모습을", Match::allWithNormalizing).first;
|
||||
EXPECT_EQ(res[0].str, u"서툴");
|
||||
}
|
||||
|
||||
TEST(KiwiCpp, SplitComplex)
|
||||
{
|
||||
Kiwi& kiwi = reuseKiwiInstance();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue