MCPcopy Create free account
hub / github.com/commonmark/cmark / test_cplusplus

Function test_cplusplus

api_test/cplusplus.cpp:7–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "harness.h"
6
7void
8test_cplusplus(test_batch_runner *runner)
9{
10 static const char md[] = "paragraph\n";
11 char *html = cmark_markdown_to_html(md, sizeof(md) - 1, CMARK_OPT_DEFAULT);
12 STR_EQ(runner, html, "<p>paragraph</p>\n", "libcmark works with C++");
13 free(html);
14}
15

Callers 1

mainFunction · 0.85

Calls 2

cmark_markdown_to_htmlFunction · 0.85
STR_EQFunction · 0.85

Tested by

no test coverage detected