From cf2f192486c85b6c7902d84dada3411e958c18b8 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 7 Aug 2015 12:49:26 -0700 Subject: Added api_test case for #68. Currently fails. --- api_test/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'api_test') 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, "\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, "

line
\nline

\n", + "crlf endings with CMARK_OPT_HARDBREAKS"); + free(html); } static void -- cgit v1.2.3