better test for duplicate IDs

This commit is contained in:
Max Bradbury 2020-06-24 15:15:13 +01:00
parent 4ed5e0bce8
commit 5de02c5950
1 changed files with 4 additions and 1 deletions

View File

@ -247,6 +247,9 @@ mod test {
// end // end
assert_eq!(new_unique_id(vec!["0".to_string(), "1".to_string()]), "2".to_string()); assert_eq!(new_unique_id(vec!["0".to_string(), "1".to_string()]), "2".to_string());
// check deduplication // 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()
);
} }
} }