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