Skip to content

Commit

Permalink
Add test case for bab2min/kiwipiepy#189
Browse files Browse the repository at this point in the history
  • Loading branch information
bab2min committed Nov 20, 2024
1 parent 40d5305 commit 5f2e935
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 @@ -1609,3 +1609,16 @@ TEST(KiwiCpp, IssueP172_LengthError)
auto res = kiwi.analyze(text, Match::allWithNormalizing).first;
EXPECT_GT(res.size(), 0);
}

TEST(KiwiCpp, IssueP189)
{
Kiwi& kiwi = reuseKiwiInstance();
auto res = kiwi.analyze(u"담아 1팩 무료", Match::allWithNormalizing).first;

EXPECT_EQ(res.size(), 5);
EXPECT_EQ(res[0].str, u"");
EXPECT_EQ(res[1].str, u"");
EXPECT_EQ(res[2].str, u"1");
EXPECT_EQ(res[3].str, u"");
EXPECT_EQ(res[4].str, u"무료");
}

0 comments on commit 5f2e935

Please sign in to comment.