summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Orchard <if_coding@fastmail.com>2021-07-29 00:02:39 -0700
committerDavid Orchard <if_coding@fastmail.com>2021-07-29 00:05:27 -0700
commit195820e292a234226cc26a7a434e45b07d0627d3 (patch)
tree9990374781715f61b01793bfe3dc9b84541ab5f3
parentcd5e8d5d6acab38ab42a7318cbed428b7acf22af (diff)
Disable map order preservation for hjson
-rw-r--r--tests/file_hjson.rs8
-rw-r--r--tests/legacy/file_hjson.rs8
2 files changed, 4 insertions, 12 deletions
diff --git a/tests/file_hjson.rs b/tests/file_hjson.rs
index 934be76..376993f 100644
--- a/tests/file_hjson.rs
+++ b/tests/file_hjson.rs
@@ -60,12 +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()
);
}
diff --git a/tests/legacy/file_hjson.rs b/tests/legacy/file_hjson.rs
index 0f75bd2..b846c91 100644
--- a/tests/legacy/file_hjson.rs
+++ b/tests/legacy/file_hjson.rs
@@ -58,12 +58,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()
);
}