diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2019-04-01 00:18:21 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2019-04-01 00:18:21 +0200 |
commit | 6fa4494aaebc5a5314d11e76c576b69ec31119b9 (patch) | |
tree | 00af0f4a61cd43f31243499134f4ae03e0f536f7 | |
parent | 5d02ff9a6d28fedead688bc42c9e9619e3708ff2 (diff) | |
download | weechat-6fa4494aaebc5a5314d11e76c576b69ec31119b9.zip |
tests: add test with multiple wildcards in call to function string_match
-rw-r--r-- | tests/unit/core/test-core-string.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |