Repository: toml-rs/toml
Pull request #868 (2025-04-23 17:39:41)

chore: Update toml-test-rs


Patch:
diff --git a/Cargo.lock b/Cargo.lock
index 6af7e60f..e242f046 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -905,18 +905,18 @@ dependencies = [
 
 [[package]]
 name = "toml-test-data"
-version = "2.2.0"
+version = "2.3.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b7390632915a1e444780466acd08f03cf82e567e4f2aeadb4fd19701175ff57"
+checksum = "a13877b78b58f6bba562aaca6930fd266b9e8c569aef815352552b302d0b8620"
 dependencies = [
  "include_dir",
 ]
 
 [[package]]
 name = "toml-test-harness"
-version = "1.2.0"
+version = "1.3.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d45cce58182406b959e70c7d4120ba322954817c2c60f1655fd51b90a88050ec"
+checksum = "c263faeb344cef69a467a8a2b4d4dd3c729efd9379b5383158f969c3da50c057"
 dependencies = [
  "ignore",
  "libtest-mimic",
diff --git a/crates/toml/Cargo.toml b/crates/toml/Cargo.toml
index e34e9f31..168dc73d 100644
--- a/crates/toml/Cargo.toml
+++ b/crates/toml/Cargo.toml
@@ -49,8 +49,8 @@ serde_spanned = { version = "0.6.8", path = "../serde_spanned", features = ["ser
 [dev-dependencies]
 serde = { version = "1.0.199", features = ["derive"] }
 serde_json = "1.0.116"
-toml-test-harness = { version = "1.1.1", features = ["snapshot"] }
-toml-test-data = "2.1.0"
+toml-test-harness = { version = "1.3.0", features = ["snapshot"] }
+toml-test-data = "2.3.0"
 snapbox = "0.6.0"
 
 [[test]]
diff --git a/crates/toml_edit/Cargo.toml b/crates/toml_edit/Cargo.toml
index 1356dda7..6bc87d0c 100644
--- a/crates/toml_edit/Cargo.toml
+++ b/crates/toml_edit/Cargo.toml
@@ -50,8 +50,8 @@ toml_write = { version = "0.1.0", path = "../toml_write", optional = true }
 
 [dev-dependencies]
 serde_json = "1.0.116"
-toml-test-harness = { version = "1.1.1", features = ["snapshot"] }
-toml-test-data = "2.1.0"
+toml-test-harness = { version = "1.3.0", features = ["snapshot"] }
+toml-test-data = "2.3.0"
 snapbox = "0.6.0"
 proptest = "1.5.0"
 walkdir = "2.5.0"


Test patch:
diff --git a/crates/toml_edit/tests/snapshots/invalid/local-time/trailing-dot.stderr b/crates/toml_edit/tests/snapshots/invalid/local-time/trailing-dot.stderr
new file mode 100644
index 00000000..eb749ed6
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/local-time/trailing-dot.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 13
+  |
+1 | t = 12:13:14.
+  |             ^
+expected newline, `#`
diff --git a/crates/toml_edit/tests/snapshots/invalid/local-time/trailing-dotdot.stderr b/crates/toml_edit/tests/snapshots/invalid/local-time/trailing-dotdot.stderr
new file mode 100644
index 00000000..e126a5de
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/local-time/trailing-dotdot.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 13
+  |
+1 | t = 12:13:14..
+  |             ^
+expected newline, `#`
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-1.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-1.stderr
new file mode 100644
index 00000000..959881f3
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-1.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 28
+  |
+1 | bad-uni-esc-ml-1 = """val\ue"""
+  |                            ^
+invalid unicode 4-digit hex code
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-2.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-2.stderr
new file mode 100644
index 00000000..ce649524
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-2.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 28
+  |
+1 | bad-uni-esc-ml-2 = """val\Ux"""
+  |                            ^
+invalid unicode 8-digit hex code
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-3.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-3.stderr
new file mode 100644
index 00000000..944889cf
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-3.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 28
+  |
+1 | bad-uni-esc-ml-3 = """val\U0000000"""
+  |                            ^
+invalid unicode 8-digit hex code
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-4.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-4.stderr
new file mode 100644
index 00000000..bc6cc239
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-4.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 28
+  |
+1 | bad-uni-esc-ml-4 = """val\U0000"""
+  |                            ^
+invalid unicode 8-digit hex code
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-5.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-5.stderr
new file mode 100644
index 00000000..d643c047
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-5.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 28
+  |
+1 | bad-uni-esc-ml-5 = """val\Ugggggggg"""
+  |                            ^
+invalid unicode 8-digit hex code
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-6.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-6.stderr
new file mode 100644
index 00000000..51e0de3a
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-6.stderr
@@ -0,0 +1,6 @@
+TOML parse error at line 1, column 77
+  |
+1 | bad-uni-esc-ml-6 = """This string contains a non scalar unicode codepoint \uD801"""
+  |                                                                             ^
+invalid unicode 4-digit hex code
+value is out of range
diff --git a/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-7.stderr b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-7.stderr
new file mode 100644
index 00000000..55a5198a
--- /dev/null
+++ b/crates/toml_edit/tests/snapshots/invalid/string/bad-uni-esc-ml-7.stderr
@@ -0,0 +1,5 @@
+TOML parse error at line 1, column 25
+  |
+1 | bad-uni-esc-ml-7 = """\uabag"""
+  |                         ^
+invalid unicode 4-digit hex code