summaryrefslogtreecommitdiff
path: root/api_test/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-03-15 16:41:59 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-03-15 16:41:59 -0700
commit294880e0118e27c97f26beaaa81a79de23f80727 (patch)
treed71a10d5758926e7fd6126976ef496c7645cf07c /api_test/main.c
parentcc78b3e9e2c05201469356730c60f6bf3d073232 (diff)
Added options parameter to cmark_markdown_to_html.
Diffstat (limited to 'api_test/main.c')
-rw-r--r--api_test/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/api_test/main.c b/api_test/main.c
index d42cbaf..3390ac6 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -606,7 +606,8 @@ utf8(test_batch_runner *runner)
// Test string containing null character
static const char string_with_null[] = "((((\0))))";
char *html = cmark_markdown_to_html(string_with_null,
- sizeof(string_with_null) - 1);
+ sizeof(string_with_null) - 1,
+ CMARK_OPT_DEFAULT);
STR_EQ(runner, html, "<p>((((" UTF8_REPL "))))</p>\n",
"utf8 with U+0000");
free(html);
@@ -656,7 +657,8 @@ test_continuation_byte(test_batch_runner *runner, const char *utf8)
}
strcat(expected, "))))</p>\n");
- char *html = cmark_markdown_to_html(buf, strlen(buf));
+ char *html = cmark_markdown_to_html(buf, strlen(buf),
+ CMARK_OPT_DEFAULT);
STR_EQ(runner, html, expected,
"invalid utf8 continuation byte %d/%d", pos, len);
free(html);
@@ -667,7 +669,8 @@ static void
test_md_to_html(test_batch_runner *runner, const char *markdown,
const char *expected_html, const char *msg)
{
- char *html = cmark_markdown_to_html(markdown, strlen(markdown));
+ char *html = cmark_markdown_to_html(markdown, strlen(markdown),
+ CMARK_OPT_DEFAULT);
STR_EQ(runner, html, expected_html, msg);
free(html);
}