From 106d51f5c213cc4da136a29989bb8c45f0d3911f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 2 Jan 2024 14:18:17 -0600 Subject: [PATCH] test: Update compliance suite --- Cargo.lock | 4 ++-- crates/toml/Cargo.toml | 2 +- crates/toml_edit/Cargo.toml | 2 +- .../inline-table/{overwrite-1.stderr => overwrite-01.stderr} | 0 .../inline-table/{overwrite-2.stderr => overwrite-02.stderr} | 0 .../inline-table/{overwrite-3.stderr => overwrite-03.stderr} | 0 .../inline-table/{overwrite-4.stderr => overwrite-04.stderr} | 0 .../inline-table/{overwrite-5.stderr => overwrite-05.stderr} | 0 .../inline-table/{overwrite-6.stderr => overwrite-06.stderr} | 0 .../inline-table/{overwrite-7.stderr => overwrite-07.stderr} | 0 .../inline-table/{overwrite-8.stderr => overwrite-08.stderr} | 0 .../inline-table/{overwrite-9.stderr => overwrite-09.stderr} | 0 .../tests/fixtures/invalid/inline-table/overwrite-10.stderr | 5 +++++ 13 files changed, 9 insertions(+), 4 deletions(-) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-1.stderr => overwrite-01.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-2.stderr => overwrite-02.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-3.stderr => overwrite-03.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-4.stderr => overwrite-04.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-5.stderr => overwrite-05.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-6.stderr => overwrite-06.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-7.stderr => overwrite-07.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-8.stderr => overwrite-08.stderr} (100%) rename crates/toml_edit/tests/fixtures/invalid/inline-table/{overwrite-9.stderr => overwrite-09.stderr} (100%) create mode 100644 crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-10.stderr diff --git a/Cargo.lock b/Cargo.lock index 8aba1495..3fc47ebe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -935,9 +935,9 @@ dependencies = [ [[package]] name = "toml-test-data" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad91e06583efe5577c6b123d4b53cb0fcbf66407b9f1f47084977d5db0ba132f" +checksum = "c6b5bad99e813ce8c67d1d67c9b9f37c8451933f45eae0ab2b3583975f1cc15d" dependencies = [ "include_dir", ] diff --git a/crates/toml/Cargo.toml b/crates/toml/Cargo.toml index 8d1727ad..8130265c 100644 --- a/crates/toml/Cargo.toml +++ b/crates/toml/Cargo.toml @@ -50,7 +50,7 @@ serde_spanned = { version = "0.6.5", path = "../serde_spanned", features = ["ser serde = { version = "1.0.160", features = ["derive"] } serde_json = "1.0.96" toml-test-harness = "0.4.8" -toml-test-data = "1.7.0" +toml-test-data = "1.8.0" snapbox = "0.4.11" [[test]] diff --git a/crates/toml_edit/Cargo.toml b/crates/toml_edit/Cargo.toml index 744b3a02..5eb76590 100644 --- a/crates/toml_edit/Cargo.toml +++ b/crates/toml_edit/Cargo.toml @@ -50,7 +50,7 @@ serde_spanned = { version = "0.6.5", path = "../serde_spanned", features = ["ser [dev-dependencies] serde_json = "1.0.96" toml-test-harness = "0.4.8" -toml-test-data = "1.7.0" +toml-test-data = "1.8.0" libtest-mimic = "0.6.0" snapbox = { version = "0.4.11", features = ["harness"] } diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-1.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-01.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-1.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-01.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-2.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-02.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-2.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-02.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-3.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-03.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-3.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-03.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-4.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-04.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-4.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-04.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-5.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-05.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-5.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-05.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-6.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-06.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-6.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-06.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-7.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-07.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-7.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-07.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-8.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-08.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-8.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-08.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-9.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-09.stderr similarity index 100% rename from crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-9.stderr rename to crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-09.stderr diff --git a/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-10.stderr b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-10.stderr new file mode 100644 index 00000000..18af75a0 --- /dev/null +++ b/crates/toml_edit/tests/fixtures/invalid/inline-table/overwrite-10.stderr @@ -0,0 +1,5 @@ +TOML parse error at line 4, column 6 + | +4 | a = {b.a = 1, b = 2, b.c = 3} + | ^ +duplicate key `b`