Skip to content

Commit

Permalink
test(toml): Update ignored compliance tests
Browse files Browse the repository at this point in the history
This is another example of the benefit of toml-rs#340
  • Loading branch information
epage committed Jan 19, 2023
1 parent c1ca80f commit 4bf527d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
8 changes: 1 addition & 7 deletions crates/toml/tests/decoder_compliance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@ fn main() {
let mut harness = toml_test_harness::DecoderHarness::new(decoder);
harness
.ignore([
"invalid/control/comment-cr.toml",
"invalid/control/comment-del.toml",
"invalid/datetime/hour-over.toml",
"invalid/integer/positive-bin.toml",
"invalid/integer/positive-hex.toml",
"valid/inline-table/newline.toml",
"valid/spec/float-0.toml",
"valid/spec/table-9.toml",
// Unreleased
"valid/string/escape-esc.toml",
"valid/string/hex-escape.toml",
"valid/datetime/no-seconds.toml",
"valid/inline-table/newline.toml",
])
.unwrap();
harness.test();
Expand Down
9 changes: 1 addition & 8 deletions crates/toml/tests/encoder_compliance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ fn main() {
let encoder = encoder::Encoder;
let decoder = decoder::Decoder;
let mut harness = toml_test_harness::EncoderHarness::new(encoder, decoder);
harness
.ignore([
"valid/array/mixed-string-table.toml",
"valid/inline-table/nest.toml",
"valid/spec/float-0.toml",
"valid/spec/array-0.toml",
])
.unwrap();
harness.ignore(["valid/spec/float-0.toml"]).unwrap();
harness.test();
}

0 comments on commit 4bf527d

Please sign in to comment.