From 56bb49c26a6ab9bb850a9fe6f6547e66acd3752f Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Sun, 22 Nov 2026 15:29:29 -0600 Subject: fix: learn_18 corrections --- learn_18/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'learn_18') diff --git a/learn_18/src/main.rs b/learn_18/src/main.rs index 2fdab98..40081fe 100644 --- a/learn_18/src/main.rs +++ b/learn_18/src/main.rs @@ -82,6 +82,8 @@ mod tests { assert!(&ur.insert(Username::new("Joe".to_string()),2).is_none()); assert_eq!(ur.len(), 2 as usize); assert!(&ur.get("Joe".to_string().as_str()).is_some_and(|x| x == 2)); + assert!(&ur.insert(Username::new("joe".to_string()),5).is_none()); + assert_eq!(ur.len(), 3 as usize); } } -- cgit v1.2.3