From 5de02c595066b5bc59336142cc21cbb65cc603eb Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 24 Jun 2020 15:15:13 +0100 Subject: [PATCH] better test for duplicate IDs --- src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 430fbfe..c818c28 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -247,6 +247,9 @@ mod test { // end assert_eq!(new_unique_id(vec!["0".to_string(), "1".to_string()]), "2".to_string()); // check deduplication - assert_eq!(new_unique_id(vec!["0".to_string(), "0".to_string()]), "1".to_string()); + assert_eq!( + new_unique_id(vec!["0".to_string(), "0".to_string(), "1".to_string()]), + "2".to_string() + ); } }