]> uap-core.de Git - note.git/commitdiff
add test_editor_load_markdown_span1
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Tue, 10 Mar 2026 19:45:55 +0000 (20:45 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Tue, 10 Mar 2026 19:45:55 +0000 (20:45 +0100)
application/tests/test-editor.c
application/tests/test-editor.h
application/tests/testmain.c

index d5b5043ab9a6300510c5a9ca9729049bf53c85a0..04e4c54421866b548ca4ac6ff586fad0786596ca 100644 (file)
@@ -482,3 +482,9 @@ CX_TEST(test_editor_load_markdown_list1) {
         CX_TEST_CALL_SUBROUTINE(test_editor_markdown_load_get, cx_mutstr("Bullet list\n\n - Element 1\n - Element 2\n -n Element 3\n\nEnd."));
     }
 }
+
+CX_TEST(test_editor_load_markdown_span1) {
+    CX_TEST_DO {
+        CX_TEST_CALL_SUBROUTINE(test_editor_markdown_load_get, cx_mutstr("Text **bold** and _underline_\n\nText *italic*\n"));
+    }
+}
index 2096ebafdde64c3889dfa1a16c76794dd076b677..5be365340b8cd7c0084ca024a51f333a2a28395e 100644 (file)
@@ -45,6 +45,7 @@ CX_TEST(test_editor_load_markdown_simple);
 CX_TEST(test_editor_load_markdown_para1);
 CX_TEST(test_editor_load_markdown_heading_para);
 CX_TEST(test_editor_load_markdown_list1);
+CX_TEST(test_editor_load_markdown_span1);
 
 #ifdef __cplusplus
 }
index b2b39e207bf8222b46fe2f89a4c2922766a04214..67cfd0351017e7532d8976983bfb8eebb319e97a 100644 (file)
@@ -86,6 +86,7 @@ int main(int argc, char **argv) {
     cx_test_register(suite, test_editor_load_markdown_para1);
     cx_test_register(suite, test_editor_load_markdown_heading_para);
     cx_test_register(suite, test_editor_load_markdown_list1);
+    cx_test_register(suite, test_editor_load_markdown_span1);
     
     cx_test_register(suite, test_text_search_strcasestr);
     cx_test_register(suite, test_text_search_cs);