aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2020-09-23 13:04:11 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-23 13:04:11 +0200
commit8f037261c096cab27ad2d11c199217620625e09a (patch)
tree43f5e0048eacbc68df064b3791c8d1e238efca4a
parent6d5ca96e4f401b446b2e9490b6d24de5e639880c (diff)
downloadnitrokey-sys-rs-8f037261c096cab27ad2d11c199217620625e09a.tar.gz
nitrokey-sys-rs-8f037261c096cab27ad2d11c199217620625e09a.tar.bz2
Add the Librem Key model to the unit tests
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 81a98bc..7c53aa8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -27,8 +27,9 @@ mod tests {
fn login() {
unsafe {
// Unconnected
- assert_eq!(0, NK_login(CString::new("S").unwrap().as_ptr()));
+ assert_eq!(0, NK_login(CString::new("L").unwrap().as_ptr()));
assert_eq!(0, NK_login(CString::new("P").unwrap().as_ptr()));
+ assert_eq!(0, NK_login(CString::new("S").unwrap().as_ptr()));
// Unsupported model
assert_eq!(0, NK_login(CString::new("T").unwrap().as_ptr()));
}