mirror of https://github.com/kdl-org/kdl-rs.git
fmt
This commit is contained in:
parent
3055e1ec7a
commit
889c6bc1bd
|
|
@ -669,10 +669,7 @@ final;";
|
||||||
doc.iter_dash_args("foo").collect::<Vec<&KdlValue>>(),
|
doc.iter_dash_args("foo").collect::<Vec<&KdlValue>>(),
|
||||||
vec![&1.into(), &2.into(), &"three".into()]
|
vec![&1.into(), &2.into(), &"three".into()]
|
||||||
);
|
);
|
||||||
assert_eq!(
|
assert_eq!(doc.format().map(|f| &f.leading[..]), Some(""));
|
||||||
doc.format().map(|f| &f.leading[..]),
|
|
||||||
Some("")
|
|
||||||
);
|
|
||||||
|
|
||||||
let foo = doc.get("foo").expect("expected a foo node");
|
let foo = doc.get("foo").expect("expected a foo node");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue