summaryrefslogtreecommitdiff
path: root/api_test/cplusplus.cpp
blob: 5e8f722a3b4173f9e9930b38a72a996b8a486d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cstdlib>

#include "cmark.h"
#include "cplusplus.h"
#include "harness.h"

void
test_cplusplus(test_batch_runner *runner)
{
    static const char md[] = "paragraph\n";
    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);
}