summaryrefslogtreecommitdiffstats
path: root/tests/file_toml.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/file_toml.rs')
-rw-r--r--tests/file_toml.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/file_toml.rs b/tests/file_toml.rs
index 9493bbd..7c57c4b 100644
--- a/tests/file_toml.rs
+++ b/tests/file_toml.rs
@@ -71,8 +71,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()),
+ ]
);
}