Skip to content

Commit 622efac

Browse files
author
David Orchard
committed
Disable map order preservation for hjson
1 parent 7134592 commit 622efac

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

tests/file_hjson.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,8 @@ fn test_file() {
6060
assert_eq!(s.elements.len(), 10);
6161
assert_eq!(s.elements[3], "4".to_string());
6262
assert_eq!(
63-
s.place
64-
.creator
65-
.into_iter()
66-
.collect::<Vec<(String, config::Value)>>(),
67-
vec![
68-
("name".to_string(), "John Smith".into()),
69-
("username".into(), "jsmith".into()),
70-
("email".into(), "jsmith@localhost".into()),
71-
]
63+
s.place.creator["name"].clone().into_string().unwrap(),
64+
"John Smith".to_string()
7265
);
7366
}
7467

tests/legacy/file_hjson.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,8 @@ fn test_file() {
5858
assert_eq!(s.elements.len(), 10);
5959
assert_eq!(s.elements[3], "4".to_string());
6060
assert_eq!(
61-
s.place
62-
.creator
63-
.into_iter()
64-
.collect::<Vec<(String, config::Value)>>(),
65-
vec![
66-
("name".to_string(), "John Smith".into()),
67-
("username".into(), "jsmith".into()),
68-
("email".into(), "jsmith@localhost".into()),
69-
]
61+
s.place.creator["name"].clone().into_string().unwrap(),
62+
"John Smith".to_string()
7063
);
7164
}
7265

0 commit comments

Comments
 (0)