summaryrefslogtreecommitdiffstats
path: root/tests/file_yaml.rs
diff options
context:
space:
mode:
authorDavid Orchard <if_coding@fastmail.com>2021-07-28 22:49:48 -0700
committerDavid Orchard <if_coding@fastmail.com>2021-08-15 10:31:10 -0700
commit62c84297e5340d717d89c5c0b36ed86dd5ad9d2f (patch)
treee3062f57dfb10b921267aeeed5df6b42d93a4657 /tests/file_yaml.rs
parent74a0a809f642e2d212752c9ccb767d987c42302e (diff)
Create test cases to demonstrate lossy map order
Diffstat (limited to 'tests/file_yaml.rs')
-rw-r--r--tests/file_yaml.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/file_yaml.rs b/tests/file_yaml.rs
index 90feefc..2ea9db4 100644
--- a/tests/file_yaml.rs
+++ b/tests/file_yaml.rs
@@ -60,8 +60,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()),
+ ]
);
}