From f6a8a4267039a31c0368b4eefb9d39b5cc663d49 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Sun, 2 Jun 2024 16:15:27 +0200 Subject: [PATCH] test_parser: Add tests for empty keywordsets --- test_parser.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_parser.c b/test_parser.c index 1c56638b..bb1248b7 100644 --- a/test_parser.c +++ b/test_parser.c @@ -68,6 +68,11 @@ int main() { keywordset_free(tags); + tags = keywordset_new("x"); + test_expression(tags, "bla", 0, 0); + test_expression(tags, "!bla", 0, 1); + keywordset_free(tags); + static char text[8002]; text[8001] = 0; memset(text, '(', 8000);