@@ -107,6 +107,8 @@ static void accessors(test_batch_runner *runner) {
107
107
"get_list_type bullet" );
108
108
INT_EQ (runner , cmark_node_get_list_tight (bullet_list ), 1 ,
109
109
"get_list_tight tight" );
110
+ INT_EQ (runner , cmark_node_get_list_marker (bullet_list ), CMARK_ASTERISK_LIST_MARKER ,
111
+ "get_list_marker asterisk" );
110
112
111
113
cmark_node * ordered_list = cmark_node_next (bullet_list );
112
114
INT_EQ (runner , cmark_node_get_list_type (ordered_list ), CMARK_ORDERED_LIST ,
@@ -146,6 +148,7 @@ static void accessors(test_batch_runner *runner) {
146
148
147
149
OK (runner , cmark_node_set_heading_level (heading , 3 ), "set_heading_level" );
148
150
151
+ OK (runner , cmark_node_set_list_marker (bullet_list , CMARK_PLUS_LIST_MARKER ), "set_list_marker plus" );
149
152
OK (runner , cmark_node_set_list_type (bullet_list , CMARK_ORDERED_LIST ),
150
153
"set_list_type ordered" );
151
154
OK (runner , cmark_node_set_list_delim (bullet_list , CMARK_PAREN_DELIM ),
@@ -211,6 +214,7 @@ static void accessors(test_batch_runner *runner) {
211
214
"get_list_type error" );
212
215
INT_EQ (runner , cmark_node_get_list_start (code ), 0 , "get_list_start error" );
213
216
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" );
214
218
OK (runner , cmark_node_get_literal (ordered_list ) == NULL , "get_literal error" );
215
219
OK (runner , cmark_node_get_fence_info (paragraph ) == NULL ,
216
220
"get_fence_info error" );
@@ -225,6 +229,7 @@ static void accessors(test_batch_runner *runner) {
225
229
"set_list_type error" );
226
230
OK (runner , !cmark_node_set_list_start (code , 3 ), "set_list_start error" );
227
231
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" );
228
233
OK (runner , !cmark_node_set_literal (ordered_list , "content\n" ),
229
234
"set_literal error" );
230
235
OK (runner , !cmark_node_set_fence_info (paragraph , "lang" ),
@@ -240,6 +245,8 @@ static void accessors(test_batch_runner *runner) {
240
245
"set_list_type invalid" );
241
246
OK (runner , !cmark_node_set_list_start (bullet_list , -1 ),
242
247
"set_list_start negative" );
248
+ OK (runner , !cmark_node_set_list_marker (bullet_list , CMARK_NO_LIST_MARKER ),
249
+ "set_list_marker invalid" );
243
250
244
251
cmark_node_free (doc );
245
252
}
0 commit comments