From 9bd1780952292ff8c85456396e6434f0df18f42d Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Sun, 15 Mar 2026 21:31:03 +0100 Subject: [PATCH] add test_editor_load_markdown_list2 --- 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 ff033fd..e84f31e 100644 --- a/application/tests/test-editor.c +++ b/application/tests/test-editor.c @@ -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")); diff --git a/application/tests/test-editor.h b/application/tests/test-editor.h index 065f9cb..c983f9a 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_list2); CX_TEST(test_editor_load_markdown_span1); CX_TEST(test_editor_load_markdown_code1); CX_TEST(test_editor_load_markdown_link); diff --git a/application/tests/testmain.c b/application/tests/testmain.c index 1cfcb63..8cacb25 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_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); -- 2.47.3