]> uap-core.de Git - note.git/commitdiff
add test_editor_load_markdown_list2 main
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Sun, 15 Mar 2026 20:31:03 +0000 (21:31 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Sun, 15 Mar 2026 20:31:03 +0000 (21:31 +0100)
application/tests/test-editor.c
application/tests/test-editor.h
application/tests/testmain.c

index ff033fd97bcd334e8fb874c53a27ab54b2b02705..e84f31e46c224e3cc6d40eaac318a502c3cb0887 100644 (file)
@@ -483,6 +483,12 @@ CX_TEST(test_editor_load_markdown_list1) {
     }
 }
 
+CX_TEST(test_editor_load_markdown_list2) {
+    CX_TEST_DO {
+        CX_TEST_CALL_SUBROUTINE(test_editor_markdown_load_get, cx_mutstr("Ordered List:\n\n1. first\n2. second\n3. third\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 065f9cbfd01bee5b3b5522a5de5110e5aaecaf40..c983f9ab459b76e27572ea8e4bedfae4d77e5c62 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_list2);
 CX_TEST(test_editor_load_markdown_span1);
 CX_TEST(test_editor_load_markdown_code1);
 CX_TEST(test_editor_load_markdown_link);
index 1cfcb63746cd1d09304c128cb5d50b527ff49980..8cacb25a9f56bd564205faf712137210b4dced8e 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_list2);
     cx_test_register(suite, test_editor_load_markdown_span1);
     cx_test_register(suite, test_editor_load_markdown_code1);
     cx_test_register(suite, test_editor_load_markdown_link);