From a1ad071371d2ddeca947e28b1f07d64ffc1bfc40 Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Mon, 2 Feb 2026 20:41:17 +0100 Subject: [PATCH] extend regex search test --- application/tests/test-note.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); } } -- 2.47.3