From 798aa701e52f4e78cb71a57ec73c6b3a5b01f4a3 Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Tue, 10 Mar 2026 20:45:55 +0100 Subject: [PATCH] add test_editor_load_markdown_span1 --- application/tests/test-editor.c | 6 ++++++ application/tests/test-editor.h | 1 + application/tests/testmain.c | 1 + 3 files changed, 8 insertions(+) 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); -- 2.47.3