mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Add the test case
This commit is contained in:
parent
92c23167a2
commit
7574cf9ada
1 changed files with 13 additions and 0 deletions
|
|
@ -1484,3 +1484,16 @@ TEST(KiwiCpp, NestedSentenceSplit)
|
|||
EXPECT_EQ(ranges.size(), 1);
|
||||
}
|
||||
}
|
||||
|
||||
TEST(KiwiCpp, IssueP172_LengthError)
|
||||
{
|
||||
std::u16string text;
|
||||
text += u"\n";
|
||||
for (int i = 0; i < 4000; ++i)
|
||||
{
|
||||
text += u"좋은채팅사이트《35141561234.wang.com》";
|
||||
}
|
||||
Kiwi& kiwi = reuseKiwiInstance();
|
||||
auto res = kiwi.analyze(text, Match::allWithNormalizing).first;
|
||||
EXPECT_GT(res.size(), 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue