Skip to content

Commit

Permalink
chore(deps): update toml-test
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed Oct 23, 2023
1 parent fba15e5 commit 87ca853
Show file tree
Hide file tree
Showing 171 changed files with 676 additions and 140 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions _typos.toml
@@ -1,2 +1,7 @@
[files]
extend-exclude = [
"crates/toml_edit/tests/fixtures/**",
]

[default.extend-words]
ser = "ser"
4 changes: 2 additions & 2 deletions crates/toml/Cargo.toml
Expand Up @@ -49,8 +49,8 @@ serde_spanned = { version = "0.6.4", path = "../serde_spanned", features = ["ser
[dev-dependencies]
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0.96"
toml-test-harness = "0.4.7"
toml-test-data = "1.3.1"
toml-test-harness = "0.4.8"
toml-test-data = "1.4.0"
snapbox = "0.4.11"

[[test]]
Expand Down
10 changes: 10 additions & 0 deletions crates/toml/tests/decoder_compliance.rs
Expand Up @@ -5,6 +5,16 @@ fn main() {
let decoder = decoder::Decoder;
let mut harness = toml_test_harness::DecoderHarness::new(decoder);
harness.version("1.0.0");
harness
.ignore([
"invalid/datetime/feb-30.toml",
"invalid/datetime/feb-29.toml",
"invalid/local-date/feb-30.toml",
"invalid/local-date/feb-29.toml",
"invalid/local-datetime/feb-29.toml",
"invalid/local-datetime/feb-30.toml",
])
.unwrap();
harness.test();
}

Expand Down
4 changes: 2 additions & 2 deletions crates/toml_edit/Cargo.toml
Expand Up @@ -46,8 +46,8 @@ serde_spanned = { version = "0.6.4", path = "../serde_spanned", features = ["ser

[dev-dependencies]
serde_json = "1.0.96"
toml-test-harness = "0.4.7"
toml-test-data = "1.3.1"
toml-test-harness = "0.4.8"
toml-test-data = "1.4.0"
libtest-mimic = "0.6.0"
snapbox = { version = "0.4.11", features = ["harness"] }

Expand Down
10 changes: 10 additions & 0 deletions crates/toml_edit/tests/decoder_compliance.rs
Expand Up @@ -4,5 +4,15 @@ fn main() {
let decoder = decoder::Decoder;
let mut harness = toml_test_harness::DecoderHarness::new(decoder);
harness.version("1.0.0");
harness
.ignore([
"invalid/datetime/feb-30.toml",
"invalid/datetime/feb-29.toml",
"invalid/local-date/feb-30.toml",
"invalid/local-date/feb-29.toml",
"invalid/local-datetime/feb-29.toml",
"invalid/local-datetime/feb-30.toml",
])
.unwrap();
harness.test();
}
6 changes: 6 additions & 0 deletions crates/toml_edit/tests/fixtures/invalid/array/array.stderr
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 21
|
1 | double-comma-1 = [1,,2]
| ^
invalid array
expected `]`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 12
TOML parse error at line 1, column 21
|
1 | array = [1,,2]
| ^
1 | double-comma-1 = [1,,2]
| ^
invalid array
expected `]`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 14
TOML parse error at line 1, column 23
|
1 | array = [1,2,,]
| ^
1 | double-comma-2 = [1,2,,]
| ^
invalid array
expected `]`
@@ -0,0 +1,5 @@
TOML parse error at line 3, column 1
|
3 | arr.val1=1
| ^
duplicate key `val1`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 14
|
1 | arrr = [true false]
| ^
invalid array
expected `]`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 24
|
1 | long_array = [ 1, 2, 3
1 | no-close-1 = [ 1, 2, 3
| ^
invalid array
expected `]`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 11
TOML parse error at line 1, column 18
|
1 | x = [42 #
| ^
1 | no-close-2 = [1,
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 21
|
1 | no-close-3 = [42 #]
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 25
|
1 | no-close-4 = [{ key = 42
| ^
invalid inline table
expected `}`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 27
|
1 | no-close-5 = [{ key = 42}
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 26
|
1 | no-close-6 = [{ key = 42 #}]
| ^
invalid inline table
expected `}`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 30
|
1 | no-close-7 = [{ key = 42} #]
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 16
|
1 | no-close-8 = [
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 20
|
1 | no-comma-1 = [true false]
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 18
|
1 | no-comma-2 = [ 1 2 3 ]
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 22
|
1 | no-comma-3 = [ 1 #,]
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 17
|
1 | only-comma-1 = [,]
| ^
invalid array
expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 17
|
1 | only-comma-2 = [,,]
| ^
invalid array
expected `]`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = falsify
| ^
1 | almost-false-with-extra = falsify
| ^
invalid string
expected `"`, `'`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = fals
| ^
1 | almost-false = fals
| ^
invalid string
expected `"`, `'`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = truthy
| ^
1 | almost-true-with-extra = truthy
| ^
invalid string
expected `"`, `'`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = tru
| ^
1 | almost-true = tru
| ^
invalid string
expected `"`, `'`
6 changes: 6 additions & 0 deletions crates/toml_edit/tests/fixtures/invalid/bool/bool.stderr
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 27
|
1 | almost-false-with-extra = falsify
| ^
invalid string
expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 28
|
1 | capitalized-false = False
| ^
invalid string
expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 28
|
1 | capitalized-true = True
| ^
invalid string
expected `"`, `'`
6 changes: 3 additions & 3 deletions crates/toml_edit/tests/fixtures/invalid/bool/just-f.stderr
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = f
| ^
1 | just-f = f
| ^
invalid string
expected `"`, `'`
6 changes: 3 additions & 3 deletions crates/toml_edit/tests/fixtures/invalid/bool/just-t.stderr
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = t
| ^
1 | just-t = t
| ^
invalid string
expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 27
|
1 | mixed-case-false = falsE
| ^
invalid string
expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 27
|
1 | mixed-case-true = trUe
| ^
invalid string
expected `"`, `'`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 9
TOML parse error at line 1, column 27
|
1 | valid = False
| ^
1 | mixed-case = valid = False
| ^
invalid string
expected `"`, `'`
@@ -1,5 +1,5 @@
TOML parse error at line 1, column 10
TOML parse error at line 1, column 32
|
1 | a = falsey
| ^
1 | starting-same-false = falsey
| ^
expected newline, `#`
@@ -1,5 +1,5 @@
TOML parse error at line 1, column 9
TOML parse error at line 1, column 31
|
1 | a = truer
| ^
1 | starting-same-true = truer
| ^
expected newline, `#`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | b = FALSE
| ^
1 | wrong-case-false = FALSE
| ^
invalid string
expected `"`, `'`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 5
TOML parse error at line 1, column 27
|
1 | a = TRUE
| ^
1 | wrong-case-true = TRUE
| ^
invalid string
expected `"`, `'`
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 17
TOML parse error at line 1, column 21
|
1 | bare-formfeed =
| ^
1 | bare-formfeed =
| ^
invalid string
expected `"`, `'`
Binary file modified crates/toml_edit/tests/fixtures/invalid/control/bare-null.stderr
Binary file not shown.
@@ -1,6 +1,6 @@
TOML parse error at line 1, column 45
TOML parse error at line 1, column 47
|
1 | comment-cr = "Carriage return in comment" #
1 | comment-cr = "Carriage return in comment" #
a=1
| ^
| ^
expected newline, `#`

0 comments on commit 87ca853

Please sign in to comment.