cmark-zig/deps/cmark/api_test/cplusplus.cpp
torque 24810cbbbd
git subrepo clone --branch=0.30.3 https://github.com/commonmark/cmark.git deps/cmark
subrepo:
  subdir:   "deps/cmark"
  merged:   "5ba25ff"
upstream:
  origin:   "https://github.com/commonmark/cmark.git"
  branch:   "0.30.3"
  commit:   "5ba25ff"
git-subrepo:
  version:  "0.4.6"
  commit:   "d4444b563"
2023-09-04 15:42:46 -07:00

16 lines
351 B
C++

#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);
}