From f65b6e49cfafb6ce1a87900f3a321a0ff4b16f06 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 23 May 2024 12:20:50 -0500 Subject: [PATCH] chore: Update toml-test --- Cargo.lock | 4 ++-- crates/toml/Cargo.toml | 2 +- crates/toml_edit/Cargo.toml | 2 +- .../fixtures/invalid/datetime/offset-overflow-hour.stderr | 6 ++++++ .../fixtures/invalid/datetime/offset-overflow-minute.stderr | 6 ++++++ 5 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-hour.stderr create mode 100644 crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-minute.stderr diff --git a/Cargo.lock b/Cargo.lock index a04e4bf7..5ae5fd38 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -732,9 +732,9 @@ dependencies = [ [[package]] name = "toml-test-data" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc0448c70dee166ce08111f0b3fabc204c4203a3d71d9bf43dfb24acc21a8c49" +checksum = "ee3dbefa15e11b0627efd28fdde71c1923efd6dc7dbbf7196c5355d739ebb08c" dependencies = [ "include_dir", ] diff --git a/crates/toml/Cargo.toml b/crates/toml/Cargo.toml index 32daed86..7cee5258 100644 --- a/crates/toml/Cargo.toml +++ b/crates/toml/Cargo.toml @@ -50,7 +50,7 @@ serde_spanned = { version = "0.6.6", path = "../serde_spanned", features = ["ser serde = { version = "1.0.199", features = ["derive"] } serde_json = "1.0.116" toml-test-harness = "0.4.8" -toml-test-data = "1.8.0" +toml-test-data = "1.11.0" snapbox = "0.5.10" [[test]] diff --git a/crates/toml_edit/Cargo.toml b/crates/toml_edit/Cargo.toml index bec2db6c..cad0ad15 100644 --- a/crates/toml_edit/Cargo.toml +++ b/crates/toml_edit/Cargo.toml @@ -50,7 +50,7 @@ serde_spanned = { version = "0.6.6", path = "../serde_spanned", features = ["ser [dev-dependencies] serde_json = "1.0.116" toml-test-harness = "0.4.8" -toml-test-data = "1.8.0" +toml-test-data = "1.11.0" libtest-mimic = "0.7.2" snapbox = { version = "0.5.10", features = ["harness"] } diff --git a/crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-hour.stderr b/crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-hour.stderr new file mode 100644 index 00000000..f2254c4b --- /dev/null +++ b/crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-hour.stderr @@ -0,0 +1,6 @@ +TOML parse error at line 2, column 25 + | +2 | d = 1985-06-18 17:04:07+25:00 + | ^ +invalid time offset +value is out of range diff --git a/crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-minute.stderr b/crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-minute.stderr new file mode 100644 index 00000000..ce42d2ed --- /dev/null +++ b/crates/toml_edit/tests/fixtures/invalid/datetime/offset-overflow-minute.stderr @@ -0,0 +1,6 @@ +TOML parse error at line 3, column 28 + | +3 | d = 1985-06-18 17:04:07+12:61 + | ^ +invalid time offset +value is out of range