Skip to content

Commit e1f2037

Browse files
committed
test: Verify with latest data
1 parent 2f9253c commit e1f2037

18 files changed

+61
-24
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/toml/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ serde_spanned = { version = "0.6.3", path = "../serde_spanned", features = ["ser
4949
[dev-dependencies]
5050
serde = { version = "1.0.160", features = ["derive"] }
5151
serde_json = "1.0.96"
52-
toml-test-harness = "0.4.4"
52+
toml-test-harness = "0.4.5"
5353
toml-test-data = "1.3.1"
5454
snapbox = "0.4.11"
5555

crates/toml/tests/decoder_compliance.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ fn main() {
77
harness
88
.ignore([
99
"valid/spec/float-0.toml",
10-
// Unreleased
11-
"valid/string/escape-esc.toml",
12-
"valid/string/hex-escape.toml",
13-
"valid/datetime/no-seconds.toml",
14-
"valid/inline-table/newline.toml",
10+
"invalid/inline-table/nested_key_conflict.toml",
1511
])
1612
.unwrap();
13+
harness.version("1.0.0");
1714
harness.test();
1815
}
1916

crates/toml/tests/encoder_compliance.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ fn main() {
77
let decoder = decoder::Decoder;
88
let mut harness = toml_test_harness::EncoderHarness::new(encoder, decoder);
99
harness.ignore(["valid/spec/float-0.toml"]).unwrap();
10+
harness.version("1.0.0");
1011
harness.test();
1112
}
1213

crates/toml_edit/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ serde_spanned = { version = "0.6.3", path = "../serde_spanned", features = ["ser
4646

4747
[dev-dependencies]
4848
serde_json = "1.0.96"
49-
toml-test-harness = "0.4.4"
49+
toml-test-harness = "0.4.5"
5050
toml-test-data = "1.3.1"
5151
libtest-mimic = "0.6.0"
5252
snapbox = { version = "0.4.11", features = ["harness"] }

crates/toml_edit/tests/decoder_compliance.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ fn main() {
55
let mut harness = toml_test_harness::DecoderHarness::new(decoder);
66
harness
77
.ignore([
8-
"valid/spec/float-0.toml", // Test issue; `Decoder` turns `6.626e-34` into `0.0`
9-
// Unreleased
10-
"valid/string/escape-esc.toml",
11-
"valid/string/hex-escape.toml",
12-
"valid/datetime/no-seconds.toml",
13-
"valid/inline-table/newline.toml",
8+
"valid/spec/float-0.toml",
9+
"invalid/inline-table/nested_key_conflict.toml",
1410
])
1511
.unwrap();
12+
harness.version("1.0.0");
1613
harness.test();
1714
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
invalid utf-8 sequence of 1 bytes from index 29
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
TOML parse error at line 1, column 21
1+
TOML parse error at line 1, column 24
22
|
3-
1 | exp-trailing-us = 1e_23_
4-
| ^
3+
1 | exp-trailing-us = 1e23_
4+
| ^
55
invalid floating-point number
6+
expected digit
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
TOML parse error at line 1, column 5
2+
|
3+
1 | v = Inf
4+
| ^
5+
invalid string
6+
expected `"`, `'`
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
TOML parse error at line 1, column 5
2+
|
3+
1 | v = NaN
4+
| ^
5+
invalid string
6+
expected `"`, `'`

0 commit comments

Comments
 (0)