]> uap-core.de Git - note.git/commitdiff
extend regex search test main
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 2 Feb 2026 19:41:17 +0000 (20:41 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Mon, 2 Feb 2026 19:41:17 +0000 (20:41 +0100)
application/tests/test-note.c

index 6c6edc0aaf74e4350c449d275e6163b311d00bb6..f713d570ffeff9167f142178ed6cd19770fedbf5 100644 (file)
@@ -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, &regex, &begin, &end);
+        CX_TEST_ASSERT(ret);
+        CX_TEST_ASSERT(begin == 25);
+        CX_TEST_ASSERT(end == 30);
     }
     
 }