Repository: toml-rs/toml
Pull request #619 (2023-10-03 15:12:29)

test: Remove false failure


Patch:
diff --git a/Cargo.lock b/Cargo.lock
index 80e2c0fc..92ca010b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -713,9 +713,9 @@ dependencies = [
 
 [[package]]
 name = "ryu"
-version = "1.0.11"
+version = "1.0.15"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
+checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
 
 [[package]]
 name = "same-file"
@@ -901,11 +901,12 @@ dependencies = [
 
 [[package]]
 name = "toml-test"
-version = "0.3.6"
+version = "0.3.7"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a47dfa19ca3d6591b3151156884e0345e646307299a111391c54b0a7bd33bb04"
+checksum = "f76ff6290013b41ffa06d30be167bca0d5798f296fcaf5b18892f2b3d7d75701"
 dependencies = [
  "chrono",
+ "ryu",
  "serde",
  "serde_json",
 ]
@@ -921,9 +922,9 @@ dependencies = [
 
 [[package]]
 name = "toml-test-harness"
-version = "0.4.5"
+version = "0.4.7"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7346ccc45965d33ad1a15e558bc67f8c7a35a72d882f646c342fea9227390296"
+checksum = "69f459a52d9e76baee240ab8463e0a830f70993457ad5c6f9d75e449cbda3246"
 dependencies = [
  "ignore",
  "libtest-mimic",
diff --git a/crates/toml/Cargo.toml b/crates/toml/Cargo.toml
index 381a7278..91ae51f6 100644
--- a/crates/toml/Cargo.toml
+++ b/crates/toml/Cargo.toml
@@ -49,7 +49,7 @@ serde_spanned = { version = "0.6.3", path = "../serde_spanned", features = ["ser
 [dev-dependencies]
 serde = { version = "1.0.160", features = ["derive"] }
 serde_json = "1.0.96"
-toml-test-harness = "0.4.5"
+toml-test-harness = "0.4.7"
 toml-test-data = "1.3.1"
 snapbox = "0.4.11"
 
diff --git a/crates/toml_edit/Cargo.toml b/crates/toml_edit/Cargo.toml
index 307f6451..f6be04e1 100644
--- a/crates/toml_edit/Cargo.toml
+++ b/crates/toml_edit/Cargo.toml
@@ -46,7 +46,7 @@ serde_spanned = { version = "0.6.3", path = "../serde_spanned", features = ["ser
 
 [dev-dependencies]
 serde_json = "1.0.96"
-toml-test-harness = "0.4.5"
+toml-test-harness = "0.4.7"
 toml-test-data = "1.3.1"
 libtest-mimic = "0.6.0"
 snapbox = { version = "0.4.11", features = ["harness"] }
diff --git a/crates/toml_edit/README.md b/crates/toml_edit/README.md
index 12d879af..f1c74eeb 100644
--- a/crates/toml_edit/README.md
+++ b/crates/toml_edit/README.md
@@ -9,7 +9,7 @@
 
 This crate allows you to parse and modify toml
 documents, while preserving comments, spaces *and
-relative order* of items.
+relative order* or items.
 
 `toml_edit` is primarily tailored for [cargo-edit](https://github.com/killercup/cargo-edit/) needs.
 


Test patch:
diff --git a/crates/toml/tests/decoder_compliance.rs b/crates/toml/tests/decoder_compliance.rs
index 4e9e5b4c..fe21443a 100644
--- a/crates/toml/tests/decoder_compliance.rs
+++ b/crates/toml/tests/decoder_compliance.rs
@@ -4,7 +4,6 @@ mod decoder;
 fn main() {
     let decoder = decoder::Decoder;
     let mut harness = toml_test_harness::DecoderHarness::new(decoder);
-    harness.ignore(["valid/spec/float-0.toml"]).unwrap();
     harness.version("1.0.0");
     harness.test();
 }
diff --git a/crates/toml/tests/encoder_compliance.rs b/crates/toml/tests/encoder_compliance.rs
index 8702b3af..c593e596 100644
--- a/crates/toml/tests/encoder_compliance.rs
+++ b/crates/toml/tests/encoder_compliance.rs
@@ -6,7 +6,6 @@ fn main() {
     let encoder = encoder::Encoder;
     let decoder = decoder::Decoder;
     let mut harness = toml_test_harness::EncoderHarness::new(encoder, decoder);
-    harness.ignore(["valid/spec/float-0.toml"]).unwrap();
     harness.version("1.0.0");
     harness.test();
 }
diff --git a/crates/toml_edit/tests/decoder_compliance.rs b/crates/toml_edit/tests/decoder_compliance.rs
index cab69a48..98f61dc1 100644
--- a/crates/toml_edit/tests/decoder_compliance.rs
+++ b/crates/toml_edit/tests/decoder_compliance.rs
@@ -3,7 +3,6 @@ mod decoder;
 fn main() {
     let decoder = decoder::Decoder;
     let mut harness = toml_test_harness::DecoderHarness::new(decoder);
-    harness.ignore(["valid/spec/float-0.toml"]).unwrap();
     harness.version("1.0.0");
     harness.test();
 }
diff --git a/crates/toml_edit/tests/encoder_compliance.rs b/crates/toml_edit/tests/encoder_compliance.rs
index ad65d75c..355c5408 100644
--- a/crates/toml_edit/tests/encoder_compliance.rs
+++ b/crates/toml_edit/tests/encoder_compliance.rs
@@ -5,10 +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/spec/float-0.toml", // Test issue; `Decoder` turns `6.626e-34` into `0.0`
-        ])
-        .unwrap();
+    harness.version("1.0.0");
     harness.test();
 }