diff options
Diffstat (limited to 'tests/file_hjson.rs')
-rw-r--r-- | tests/file_hjson.rs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/file_hjson.rs b/tests/file_hjson.rs index c6d9bd5..376993f 100644 --- a/tests/file_hjson.rs +++ b/tests/file_hjson.rs @@ -60,15 +60,8 @@ fn test_file() { assert_eq!(s.elements.len(), 10); assert_eq!(s.elements[3], "4".to_string()); assert_eq!( - s.place - .creator - .into_iter() - .collect::<Vec<(String, config::Value)>>(), - vec![ - ("name".to_string(), "John Smith".into()), - ("username".into(), "jsmith".into()), - ("email".into(), "jsmith@localhost".into()), - ] + s.place.creator["name"].clone().into_string().unwrap(), + "John Smith".to_string() ); } |