From ba9999762d98537b4de3d30afb71700bcd824e1e Mon Sep 17 00:00:00 2001 From: Chris Eidhof Date: Thu, 25 Apr 2019 14:30:52 -0400 Subject: [PATCH] Add test info for softbreak --- api_test/main.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/api_test/main.c b/api_test/main.c index 83afbff0c..2d8cb2a99 100644 --- a/api_test/main.c +++ b/api_test/main.c @@ -899,13 +899,16 @@ static void source_pos(test_batch_runner *runner) { "> Sure.\n" ">\n" "> 2. Yes, okay.\n" - "> ![ok](hi \"yes\")\n"; + "> ![ok](hi \"yes\")\n" + "\n" + "This is\n" + " **strong**\n"; cmark_node *doc = cmark_parse_document(markdown, sizeof(markdown) - 1, CMARK_OPT_DEFAULT); char *xml = cmark_render_xml(doc, CMARK_OPT_DEFAULT | CMARK_OPT_SOURCEPOS); STR_EQ(runner, xml, "\n" "\n" - "\n" + "\n" " \n" " Hi \n" " \n" @@ -946,7 +949,14 @@ static void source_pos(test_batch_runner *runner) { " \n" " \n" " \n" - " \n" + " \n" + " \n" + " This is\n" + " \n" + " \n" + " strong\n" + " \n" + " \n" "\n", "sourcepos are as expected"); free(xml);