aboutsummaryrefslogtreecommitdiff
path: root/api_test/cplusplus.cpp
blob: ea64b061732c023c0b2665f1b35de87888054f97 (plain)
  1. #include <cstdlib>
  2. #include "cmark.h"
  3. #include "harness.h"
  4. extern "C" void
  5. test_cplusplus(test_batch_runner *runner)
  6. {
  7. static const char md[] = "paragraph\n";
  8. char *html = cmark_markdown_to_html(md, sizeof(md) - 1);
  9. STR_EQ(runner, html, "<p>paragraph</p>\n", "libcmark works with C++");
  10. free(html);
  11. }