From 401bfe469536c0e172966e98ee53a9d889697248 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Wed, 24 Jun 2020 15:36:39 +0100 Subject: [PATCH] check sorting --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index c818c28..7fd89ab 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()]),