From 8f037261c096cab27ad2d11c199217620625e09a Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Wed, 23 Sep 2020 13:04:11 +0200 Subject: Add the Librem Key model to the unit tests --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())); } -- cgit v1.2.1