From: Olaf Wintermann Date: Tue, 10 Mar 2026 19:45:55 +0000 (+0100) Subject: add test_editor_load_markdown_span1 X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=798aa701e52f4e78cb71a57ec73c6b3a5b01f4a3;p=note.git add test_editor_load_markdown_span1 --- diff --git a/application/tests/test-editor.c b/application/tests/test-editor.c index d5b5043..04e4c54 100644 --- a/application/tests/test-editor.c +++ b/application/tests/test-editor.c @@ -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")); + } +} diff --git a/application/tests/test-editor.h b/application/tests/test-editor.h index 2096eba..5be3653 100644 --- a/application/tests/test-editor.h +++ b/application/tests/test-editor.h @@ -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 } diff --git a/application/tests/testmain.c b/application/tests/testmain.c index b2b39e2..67cfd03 100644 --- a/application/tests/testmain.c +++ b/application/tests/testmain.c @@ -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);