summaryrefslogtreecommitdiffstats
path: root/tests/get.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get.rs')
-rw-r--r--tests/get.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/get.rs b/tests/get.rs
index c6030ae..99f9c84 100644
--- a/tests/get.rs
+++ b/tests/get.rs
@@ -122,8 +122,14 @@ fn test_map_str() {
let c = make();
let m: HashMap<String, String> = c.get("place.creator").unwrap();
- assert_eq!(m.len(), 1);
- assert_eq!(m["name"], "John Smith".to_string());
+ assert_eq!(
+ m.into_iter().collect::<Vec<(String, String)>>(),
+ vec![
+ ("name".to_string(), "John Smith".to_string()),
+ ("username".to_string(), "jsmith".to_string()),
+ ("email".to_string(), "jsmith@localhost".to_string()),
+ ]
+ );
}
#[test]