mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
added more test cases
This commit is contained in:
parent
f833068437
commit
71f24e458f
1 changed files with 5 additions and 0 deletions
|
|
@ -619,6 +619,11 @@ TEST(KiwiCpp, WordsWithSpaces)
|
|||
res4 = kiwi.analyze(u"농협용 인육 가공공장", Match::all);
|
||||
EXPECT_EQ(res3.first[0].str, u"농협 용인 육가공 공장");
|
||||
EXPECT_EQ(res4.first[0].str, u"농협 용인 육가공 공장");
|
||||
|
||||
res5 = kiwi.analyze(u"농협용\n인육 가공\n공장에서", Match::all);
|
||||
EXPECT_EQ(res5.first[0].str, u"농협 용인 육가공 공장");
|
||||
EXPECT_EQ(res5.first[0].lineNumber, 0);
|
||||
EXPECT_EQ(res5.first[1].lineNumber, 2);
|
||||
}
|
||||
|
||||
TEST(KiwiCpp, Pattern)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue