From 6fa4494aaebc5a5314d11e76c576b69ec31119b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 1 Apr 2019 00:18:21 +0200 Subject: [PATCH] tests: add test with multiple wildcards in call to function string_match --- tests/unit/core/test-core-string.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/core/test-core-string.cpp b/tests/unit/core/test-core-string.cpp index 9ae11d6dc..1c792efc9 100644 --- a/tests/unit/core/test-core-string.cpp +++ b/tests/unit/core/test-core-string.cpp @@ -468,6 +468,7 @@ TEST(CoreString, Match) LONGS_EQUAL(0, string_match ("test", "*es", 0)); LONGS_EQUAL(0, string_match ("test", "*es", 1)); LONGS_EQUAL(1, string_match ("test", "*es*", 0)); + LONGS_EQUAL(1, string_match ("test", "**es**", 0)); LONGS_EQUAL(1, string_match ("test", "*es*", 1)); LONGS_EQUAL(1, string_match ("test", "*ES*", 0)); LONGS_EQUAL(0, string_match ("test", "*ES*", 1));