Skip to content

Commit

Permalink
chore: add failing test for toml-rs#163
Browse files Browse the repository at this point in the history
  • Loading branch information
mxndtaylor committed Nov 9, 2024
1 parent c72f2e7 commit 224dc14
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crates/toml_edit/tests/testsuite/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,25 @@ clippy.exhaustive_enums = "warn"
assert_data_eq!(actual, expected.raw());
}

#[test]
fn dotted_key_interspersed_roundtrip() {
let input = r###"
rust.unsafe_op_in_unsafe_fn = "deny"
clippy.cast_lossless = "warn"
rust.explicit_outlives_requirements = "warn"
clippy.doc_markdown = "warn"
clippy.exhaustive_enums = "warn"
"###;
let expected = input;

let manifest: DocumentMut = input.parse().unwrap();
let actual = manifest.to_string();

assert_data_eq!(actual, expected.raw());
}

#[test]
fn string_repr_roundtrip() {
assert_string_repr_roundtrip(r#""""#, str![[r#""""#]]);
Expand Down

0 comments on commit 224dc14

Please sign in to comment.