From 69826fd2b444a03677ffe3cc2c09b01b3951ce20 Mon Sep 17 00:00:00 2001 From: Leonardo Razovic Date: Thu, 15 Jul 2021 11:20:38 +0200 Subject: [PATCH] Test both possible outcomes --- src/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests.rs b/src/tests.rs index 06a3292..978e129 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -23,6 +23,8 @@ fn empty() { let mut cache = TestCache::default(); assert_eq!(cache.is_empty(), true); assert_eq!(items(&mut cache), []); + cache.insert(1); + assert_eq!(cache.is_empty(), false); } #[test]