From 4bf527dfd8f913a7a43ec52c0dad2223a9c31682 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 19 Jan 2023 16:24:01 -0600 Subject: [PATCH] test(toml): Update ignored compliance tests This is another example of the benefit of #340 --- crates/toml/tests/decoder_compliance.rs | 8 +------- crates/toml/tests/encoder_compliance.rs | 9 +-------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/crates/toml/tests/decoder_compliance.rs b/crates/toml/tests/decoder_compliance.rs index fb1b2e8b..e6881dad 100644 --- a/crates/toml/tests/decoder_compliance.rs +++ b/crates/toml/tests/decoder_compliance.rs @@ -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(); diff --git a/crates/toml/tests/encoder_compliance.rs b/crates/toml/tests/encoder_compliance.rs index 5621397a..9d77448a 100644 --- a/crates/toml/tests/encoder_compliance.rs +++ b/crates/toml/tests/encoder_compliance.rs @@ -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(); }