diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-09-09 15:27:42 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-09-10 10:51:53 +0200 |
commit | 9d84244156e8abd93a7c1d4326231bcd1abb909d (patch) | |
tree | 0881b0930c619b49c9fbf77b9a2f946c4bfe791e /unittest/test_HOTP.cc | |
parent | e164c5f3dc74fb2335b1fc573ce446cdd76a07dc (diff) | |
download | libnitrokey-9d84244156e8abd93a7c1d4326231bcd1abb909d.tar.gz libnitrokey-9d84244156e8abd93a7c1d4326231bcd1abb909d.tar.bz2 |
C++ test update (compilation fix)
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_HOTP.cc')
-rw-r--r-- | unittest/test_HOTP.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/test_HOTP.cc b/unittest/test_HOTP.cc index f25bad4..d31df55 100644 --- a/unittest/test_HOTP.cc +++ b/unittest/test_HOTP.cc @@ -84,7 +84,7 @@ TEST_CASE("Test HOTP codes according to RFC", "[HOTP]") { auto gh = get_payload<GetHOTP>(); gh.slot_number = 0x10; auto resp = GetHOTP::CommandTransaction::run(stick, gh); - REQUIRE( resp.code == code); + REQUIRE( resp.data().code == code); } //checking slot programmed before with nitro-app /* |