check sorting

This commit is contained in:
Max Bradbury 2020-06-24 15:36:39 +01:00
parent 93a50e6b86
commit 401bfe4695
1 changed files with 2 additions and 0 deletions

View File

@ -246,6 +246,8 @@ mod test {
assert_eq!(new_unique_id(vec!["0".to_string(), "2".to_string()]), "1".to_string());
// end
assert_eq!(new_unique_id(vec!["0".to_string(), "1".to_string()]), "2".to_string());
// check sorting
assert_eq!(new_unique_id(vec!["1".to_string(), "0".to_string()]), "2".to_string());
// check deduplication
assert_eq!(
new_unique_id(vec!["0".to_string(), "0".to_string(), "1".to_string()]),