Core matching test

This commit is contained in:
mkaruza 2025-04-27 21:38:48 +02:00
parent 2b314755c3
commit 7aa3ddd5c8
No known key found for this signature in database
GPG key ID: EC66B3EC3BF9F1A3

View file

@ -155,6 +155,7 @@ TEST_F(StringMatchTest, Basic) {
// Wildcards
EXPECT_EQ(MatchLen("*", "hello", 0), 1);
EXPECT_EQ(MatchLen("*", "1234567890123456", 0), 1);
EXPECT_EQ(MatchLen("h*", "hello", 0), 1);
EXPECT_EQ(MatchLen("h*", "abc", 0), 0);
EXPECT_EQ(MatchLen("h*o", "hello", 0), 1);