Skip to content

Commit

Permalink
Add the test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Sep 4, 2024
1 parent 92c2316 commit 7574cf9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/test_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 7574cf9

Please sign in to comment.