diff --git a/src/ikm.rs b/src/ikm.rs index 0f368d5..946c85e 100644 --- a/src/ikm.rs +++ b/src/ikm.rs @@ -286,6 +286,14 @@ mod tests { assert_eq!(latest_ikm.id, 3); } + #[test] + #[cfg(feature = "encryption")] + fn get_latest_ikm_empty() { + let mut lst = InputKeyMaterialList::new(); + let res = lst.get_latest_ikm(); + assert!(res.is_err()); + } + #[test] #[cfg(feature = "encryption")] fn get_ikm_by_id() {