diff options
Diffstat (limited to 'tests/legacy/file_yaml.rs')
-rw-r--r-- | tests/legacy/file_yaml.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/legacy/file_yaml.rs b/tests/legacy/file_yaml.rs index 5d7a60f..930a6f7 100644 --- a/tests/legacy/file_yaml.rs +++ b/tests/legacy/file_yaml.rs @@ -58,8 +58,15 @@ fn test_file() { assert_eq!(s.elements.len(), 10); assert_eq!(s.elements[3], "4".to_string()); assert_eq!( - s.place.creator["name"].clone().into_string().unwrap(), - "John Smith".to_string() + 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()), + ] ); } |