- Commit
- 56501dc4d3f8d33c13ca833d2386a445ecde7435
- Parent
- a389902278feefde988935353acb1a52d978df9b
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Added an api_test that segfaults.
render_commonmark on a non-block node.
Still don't know why.
My personal build of CMark ✏️
Added an api_test that segfaults.
render_commonmark on a non-block node.
Still don't know why.
1 file changed, 10 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | api_test/main.c | 10 | 10 | 0 |
diff --git a/api_test/main.c b/api_test/main.c @@ -674,6 +674,16 @@ static void render_commonmark(test_batch_runner *runner) { " ut labore et dolore magna aliqua.\n", "render document without wrapping"); free(commonmark); + + /* TODO segfaults */ + cmark_node *text = cmark_node_new(CMARK_NODE_TEXT); + cmark_node_set_literal(text, "Hi"); + commonmark = cmark_render_commonmark(text, CMARK_OPT_DEFAULT, 0); + STR_EQ(runner, commonmark, "Hi\n", + "render single inline node"); + free(commonmark); + + cmark_node_free(text); cmark_node_free(doc); }