summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-08-07 12:49:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-08-07 12:49:26 -0700
commitcf2f192486c85b6c7902d84dada3411e958c18b8 (patch)
tree5d70c797f5f0d097bbe984ffddb938f7dc596787 /api_test
parent8f485e954ba01432f78a191db97c2e62164b24cb (diff)
Added api_test case for #68.
Currently fails.
Diffstat (limited to 'api_test')
-rw-r--r--api_test/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/api_test/main.c b/api_test/main.c
index dfb5483..7c3ac1d 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -677,6 +677,13 @@ line_endings(test_batch_runner *runner)
STR_EQ(runner, html, "<ul>\n<li>a</li>\n<li>b</li>\n<li>c</li>\n<li>d</li>\n</ul>\n",
"list with different line endings");
free(html);
+ static const char crlf_lines[] = "line\r\nline\r\n";
+ html = cmark_markdown_to_html(crlf_lines,
+ sizeof(crlf_lines) - 1,
+ CMARK_OPT_DEFAULT | CMARK_OPT_HARDBREAKS);
+ STR_EQ(runner, html, "<p>line<br />\nline</p>\n",
+ "crlf endings with CMARK_OPT_HARDBREAKS");
+ free(html);
}
static void