Skip to content

Commit 5f2e935

Browse files
committed
Add test case for bab2min/kiwipiepy#189
1 parent 40d5305 commit 5f2e935

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/test_cpp.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -1609,3 +1609,16 @@ TEST(KiwiCpp, IssueP172_LengthError)
16091609
auto res = kiwi.analyze(text, Match::allWithNormalizing).first;
16101610
EXPECT_GT(res.size(), 0);
16111611
}
1612+
1613+
TEST(KiwiCpp, IssueP189)
1614+
{
1615+
Kiwi& kiwi = reuseKiwiInstance();
1616+
auto res = kiwi.analyze(u"담아 1팩 무료", Match::allWithNormalizing).first;
1617+
1618+
EXPECT_EQ(res.size(), 5);
1619+
EXPECT_EQ(res[0].str, u"");
1620+
EXPECT_EQ(res[1].str, u"");
1621+
EXPECT_EQ(res[2].str, u"1");
1622+
EXPECT_EQ(res[3].str, u"");
1623+
EXPECT_EQ(res[4].str, u"무료");
1624+
}

0 commit comments

Comments
 (0)