mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-13 11:45:45 +03:00
16 lines
321 B
C++
16 lines
321 B
C++
#include <cstdlib>
|
|
|
|
#include "cmark.h"
|
|
|
|
#include "harness.h"
|
|
|
|
extern "C" void
|
|
test_cplusplus(test_batch_runner *runner)
|
|
{
|
|
static const char md[] = "paragraph\n";
|
|
char *html = cmark_markdown_to_html(md, sizeof(md) - 1);
|
|
STR_EQ(runner, html, "<p>paragraph</p>\n", "libcmark works with C++");
|
|
free(html);
|
|
}
|
|
|