aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_offline.cc
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/test_offline.cc')
-rw-r--r--unittest/test_offline.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/unittest/test_offline.cc b/unittest/test_offline.cc
index 58c7555..f4063ab 100644
--- a/unittest/test_offline.cc
+++ b/unittest/test_offline.cc
@@ -11,6 +11,15 @@ using namespace nitrokey;
//This test suite assumes no Pro or Storage devices are connected
+#include <string.h>
+TEST_CASE("Get version", "[BASIC]") {
+ const char * v = NK_version();
+ CAPTURE(v);
+ REQUIRE( strnlen(v, 200) > 0 );
+ free((void*)v);
+}
+
+
TEST_CASE("Return false on no device connected", "[fast]") {
INFO("This test case assumes no Pro or Storage devices are connected");
auto stick = make_shared<Stick20>();