summaryrefslogtreecommitdiff
path: root/api_test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-23 14:23:18 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-23 14:23:18 -0800
commit6002fdbc030bb1c93f100d2b6a4df5cefec963f1 (patch)
tree8d7e92ec0504cc13b327d076de91bce916559ece /api_test
parent96a4e04522584aab4ea1fe444f971bec935abc8a (diff)
parent8a5b76740102dad3d7f1be154af1910174c973f0 (diff)
Merge pull request #296 from nwellnhof/version_info
Improve version information
Diffstat (limited to 'api_test')
-rw-r--r--api_test/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/api_test/main.c b/api_test/main.c
index af40a9f..d341246 100644
--- a/api_test/main.c
+++ b/api_test/main.c
@@ -53,6 +53,14 @@ static void
test_continuation_byte(test_batch_runner *runner, const char *utf8);
static void
+version(test_batch_runner *runner)
+{
+ INT_EQ(runner, cmark_version, CMARK_VERSION, "cmark_version");
+ STR_EQ(runner, cmark_version_string, CMARK_VERSION_STRING,
+ "cmark_version_string");
+}
+
+static void
constructor(test_batch_runner *runner)
{
for (int i = 0; i < num_node_types; ++i) {
@@ -666,6 +674,7 @@ int main() {
int retval;
test_batch_runner *runner = test_batch_runner_new();
+ version(runner);
constructor(runner);
accessors(runner);
node_check(runner);