aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2019-01-05 09:52:29 +0000
committerRobin Krahl <robin.krahl@ireas.org>2019-01-05 10:53:25 +0100
commit83063599f4ab1bcbbd9be9166e738a13ae4e4cc6 (patch)
treea7b0f40f269e3b9310f9f95d07fa3b4a17da30ec /tests
parent41d93202f75a5db5239a65f3cc9bf08f11876ec0 (diff)
downloadnitrokey-rs-83063599f4ab1bcbbd9be9166e738a13ae4e4cc6.tar.gz
nitrokey-rs-83063599f4ab1bcbbd9be9166e738a13ae4e4cc6.tar.bz2
Fix example for GenerateOtp::get_totp_code
Diffstat (limited to 'tests')
-rw-r--r--tests/otp.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/otp.rs b/tests/otp.rs
index 8124c76..2b46088 100644
--- a/tests/otp.rs
+++ b/tests/otp.rs
@@ -63,7 +63,10 @@ fn check_hotp_codes(device: &GenerateOtp, offset: u8) {
fn set_time(device: DeviceWrapper) {
assert_eq!(Ok(()), device.set_time(1546385382, true));
assert_eq!(Ok(()), device.set_time(1546385392, false));
- assert_eq!(Err(CommandError::Timestamp), device.set_time(1546385292, false));
+ assert_eq!(
+ Err(CommandError::Timestamp),
+ device.set_time(1546385292, false)
+ );
assert_eq!(Ok(()), device.set_time(1546385382, true));
}