From: Olaf Wintermann Date: Sat, 14 Mar 2026 19:51:06 +0000 (+0100) Subject: add test_editor_load_markdown_code1 X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=note.git add test_editor_load_markdown_code1 --- diff --git a/application/tests/test-editor.c b/application/tests/test-editor.c index 0baadd3..ff033fd 100644 --- a/application/tests/test-editor.c +++ b/application/tests/test-editor.c @@ -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")); diff --git a/application/tests/test-editor.h b/application/tests/test-editor.h index ba3ba13..065f9cb 100644 --- a/application/tests/test-editor.h +++ b/application/tests/test-editor.h @@ -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 diff --git a/application/tests/testmain.c b/application/tests/testmain.c index 13cec75..1cfcb63 100644 --- a/application/tests/testmain.c +++ b/application/tests/testmain.c @@ -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);