@@ -107,6 +107,8 @@ static void accessors(test_batch_runner *runner) {
107107 "get_list_type bullet" );
108108 INT_EQ (runner , cmark_node_get_list_tight (bullet_list ), 1 ,
109109 "get_list_tight tight" );
110+ INT_EQ (runner , cmark_node_get_list_marker (bullet_list ), CMARK_ASTERISK_LIST_MARKER ,
111+ "get_list_marker asterisk" );
110112
111113 cmark_node * ordered_list = cmark_node_next (bullet_list );
112114 INT_EQ (runner , cmark_node_get_list_type (ordered_list ), CMARK_ORDERED_LIST ,
@@ -146,6 +148,7 @@ static void accessors(test_batch_runner *runner) {
146148
147149 OK (runner , cmark_node_set_heading_level (heading , 3 ), "set_heading_level" );
148150
151+ OK (runner , cmark_node_set_list_marker (bullet_list , CMARK_PLUS_LIST_MARKER ), "set_list_marker plus" );
149152 OK (runner , cmark_node_set_list_type (bullet_list , CMARK_ORDERED_LIST ),
150153 "set_list_type ordered" );
151154 OK (runner , cmark_node_set_list_delim (bullet_list , CMARK_PAREN_DELIM ),
@@ -211,6 +214,7 @@ static void accessors(test_batch_runner *runner) {
211214 "get_list_type error" );
212215 INT_EQ (runner , cmark_node_get_list_start (code ), 0 , "get_list_start error" );
213216 INT_EQ (runner , cmark_node_get_list_tight (fenced ), 0 , "get_list_tight error" );
217+ INT_EQ (runner , cmark_node_get_list_marker (heading ), CMARK_NO_LIST_MARKER , "get_list_marker error" );
214218 OK (runner , cmark_node_get_literal (ordered_list ) == NULL , "get_literal error" );
215219 OK (runner , cmark_node_get_fence_info (paragraph ) == NULL ,
216220 "get_fence_info error" );
@@ -225,6 +229,7 @@ static void accessors(test_batch_runner *runner) {
225229 "set_list_type error" );
226230 OK (runner , !cmark_node_set_list_start (code , 3 ), "set_list_start error" );
227231 OK (runner , !cmark_node_set_list_tight (fenced , 0 ), "set_list_tight error" );
232+ OK (runner , !cmark_node_set_list_marker (heading , CMARK_PLUS_LIST_MARKER ), "set_list_marker error" );
228233 OK (runner , !cmark_node_set_literal (ordered_list , "content\n" ),
229234 "set_literal error" );
230235 OK (runner , !cmark_node_set_fence_info (paragraph , "lang" ),
@@ -240,6 +245,8 @@ static void accessors(test_batch_runner *runner) {
240245 "set_list_type invalid" );
241246 OK (runner , !cmark_node_set_list_start (bullet_list , -1 ),
242247 "set_list_start negative" );
248+ OK (runner , !cmark_node_set_list_marker (bullet_list , CMARK_NO_LIST_MARKER ),
249+ "set_list_marker invalid" );
243250
244251 cmark_node_free (doc );
245252}
0 commit comments