We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#[test] fn fuzzed_42537130() { let data = r#" [_.s.K] [_] s.0.0=2 [_.s.0.1] [_.s] "#; let doc = data.parse::<toml_edit::DocumentMut>().unwrap(); let toml = doc.to_string(); let doc = toml.parse::<toml_edit::DocumentMut>(); assert!( doc.is_ok(), "parse error: {} data: ```toml {data} ``` doc.to_string(): ```toml {} ```", doc.unwrap_err(), toml ); let doc = doc.unwrap(); assert_eq!( doc.to_string(), toml, "data: ```toml {data} ``` " ); }
---- invalid::fuzzed_42537130 stdout ---- thread 'invalid::fuzzed_42537130' panicked at crates/toml_edit/tests/testsuite/invalid.rs:316:5: parse error: TOML parse error at line 6, column 1 | 6 | 0.0=2 | ^ duplicate key `0`
data:
[_.s.K] [_] s.0.0=2 [_.s.0.1] [_.s]
doc.to_string():
[_.s.K] [_] [_.s.0.1] [_.s] 0.0=2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
data:
doc.to_string():
The text was updated successfully, but these errors were encountered: