summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
Diffstat (limited to 'api_test')
-rw-r--r--api_test/cplusplus.cpp2
-rw-r--r--api_test/main.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/api_test/cplusplus.cpp b/api_test/cplusplus.cpp
index b6228a3..5e8f722 100644
--- a/api_test/cplusplus.cpp
+++ b/api_test/cplusplus.cpp
@@ -8,7 +8,7 @@ void
test_cplusplus(test_batch_runner *runner)
{
static const char md[] = "paragraph\n";
- char *html = cmark_markdown_to_html(md, sizeof(md) - 1);
+ char *html = cmark_markdown_to_html(md, sizeof(md) - 1, CMARK_OPT_DEFAULT);
STR_EQ(runner, html, "<p>paragraph</p>\n", "libcmark works with C++");
free(html);
}
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);
}