add get_version function
Change-Id: I7f294d3a0ce1acb961c49a8a9bee0f3e8e2824eb
diff --git a/tests/basic_test.c b/tests/basic_test.c
index eb0471d..1eb4559 100644
--- a/tests/basic_test.c
+++ b/tests/basic_test.c
@@ -103,6 +103,11 @@
rmrf(rocksdbfn);
}
+void test_version_function() {
+ char *version = get_version();
+ TEST_CHECK(strcmp(version, "1.3.2") == 0);
+ TEST_MSG("Unexpected version: %s", version);
+}
TEST_LIST = {
{ "open database for reading", test_open_db },
@@ -111,5 +116,6 @@
{ "collocation analysis", test_collocation_analysis },
{ "collocation analysis as json", test_collocation_analysis_as_json },
{ "writing", test_writing },
+ { "version function", test_version_function },
{ NULL, NULL }
};