aboutsummaryrefslogtreecommitdiff
path: root/unittest/test_HOTP.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-06 09:25:03 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:42 +0100
commitfa02c23ee2f4bef6be8a502e11fc568dc74b4235 (patch)
treecce0b71b3404a6d64628424276950e51f09ae124 /unittest/test_HOTP.cc
parentb16667ba57ef301ef961801676de66cce30d4c52 (diff)
downloadlibnitrokey-fa02c23ee2f4bef6be8a502e11fc568dc74b4235.tar.gz
libnitrokey-fa02c23ee2f4bef6be8a502e11fc568dc74b4235.tar.bz2
Use CMake instead of Make
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_HOTP.cc')
-rw-r--r--unittest/test_HOTP.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/unittest/test_HOTP.cc b/unittest/test_HOTP.cc
index c6b62a3..e6f7d7c 100644
--- a/unittest/test_HOTP.cc
+++ b/unittest/test_HOTP.cc
@@ -1,4 +1,3 @@
-#define CATCH_CONFIG_MAIN // This tells Catch to provide a main()
#include "catch.hpp"
#include <iostream>
#include "device_proto.h"
@@ -14,7 +13,7 @@ using namespace nitrokey::log;
using namespace nitrokey::misc;
void hexStringToByte(uint8_t data[], const char* hexString){
- assert(strlen(hexString)%2==0);
+ REQUIRE(strlen(hexString)%2==0);
char buf[2];
for(int i=0; i<strlen(hexString); i++){
buf[i%2] = hexString[i];