From: Olaf Wintermann Date: Mon, 2 Feb 2026 19:41:17 +0000 (+0100) Subject: extend regex search test X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=HEAD;p=note.git extend regex search test --- diff --git a/application/tests/test-note.c b/application/tests/test-note.c index 6c6edc0..f713d57 100644 --- a/application/tests/test-note.c +++ b/application/tests/test-note.c @@ -243,6 +243,13 @@ CX_TEST(test_text_search_regex) { CX_TEST_ASSERT(ret); CX_TEST_ASSERT(begin == 12); CX_TEST_ASSERT(end == 17); + + begin = -1; + end = -1; + ret = text_search(str, cx_str(""), 33, TRUE, FALSE, ®ex, &begin, &end); + CX_TEST_ASSERT(ret); + CX_TEST_ASSERT(begin == 25); + CX_TEST_ASSERT(end == 30); } }