]> uap-core.de Git - note.git/commitdiff
add test_editor_load_markdown_code1 main
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Sat, 14 Mar 2026 19:51:06 +0000 (20:51 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Sat, 14 Mar 2026 19:51:06 +0000 (20:51 +0100)
application/tests/test-editor.c
application/tests/test-editor.h
application/tests/testmain.c

index 0baadd3021a5187afeb39006e87dea3c42acfd1c..ff033fd97bcd334e8fb874c53a27ab54b2b02705 100644 (file)
@@ -489,6 +489,12 @@ CX_TEST(test_editor_load_markdown_span1) {
     }
 }
 
+CX_TEST(test_editor_load_markdown_code1) {
+    CX_TEST_DO {
+        CX_TEST_CALL_SUBROUTINE(test_editor_markdown_load_get, cx_mutstr("Test `code`\n\n    Code Block\n\nend"));
+    }
+}
+
 CX_TEST(test_editor_load_markdown_link) {
     CX_TEST_DO {
         CX_TEST_CALL_SUBROUTINE(test_editor_markdown_load_get, cx_mutstr("Link [link1](https://example.com/link1)\n[link2][1]\n\n[1]: https://example.com/link2"));
index ba3ba13965d575ffa8fb6f9646ddaa25abe875b2..065f9cbfd01bee5b3b5522a5de5110e5aaecaf40 100644 (file)
@@ -46,6 +46,7 @@ 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);
+CX_TEST(test_editor_load_markdown_code1);
 CX_TEST(test_editor_load_markdown_link);
 
 #ifdef __cplusplus
index 13cec75427eeb68d4fd82e4b83921fb6252fe7a9..1cfcb63746cd1d09304c128cb5d50b527ff49980 100644 (file)
@@ -87,6 +87,7 @@ int main(int argc, char **argv) {
     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_editor_load_markdown_code1);
     cx_test_register(suite, test_editor_load_markdown_link);
     
     cx_test_register(suite, test_text_search_strcasestr);