Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update toml-test-data #417

Merged
merged 1 commit into from Jan 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions crates/test-suite/tests/decoder_compliance.rs
Expand Up @@ -9,6 +9,8 @@ fn main() {
"invalid/integer/positive-bin.toml",
"invalid/control/comment-del.toml",
"invalid/control/comment-cr.toml",
"valid/string/escape-esc.toml",
"invalid/datetime/hour-over.toml",
])
.unwrap();
harness.test();
Expand Down
2 changes: 1 addition & 1 deletion crates/toml_edit/Cargo.toml
Expand Up @@ -57,7 +57,7 @@ toml_datetime = { version = "0.5.0", path = "../toml_datetime" }
[dev-dependencies]
serde_json = "1.0.91"
toml-test-harness = "0.4.2"
toml-test-data = "1.1.1"
toml-test-data = "1.2.0"
libtest-mimic = "0.6.0"
snapbox = { version = "0.4.3", features = ["harness"] }
criterion = "0.4.0"
Expand Down
9 changes: 8 additions & 1 deletion crates/toml_edit/tests/decoder_compliance.rs
Expand Up @@ -3,6 +3,13 @@ mod decoder;
fn main() {
let decoder = decoder::Decoder;
let mut harness = toml_test_harness::DecoderHarness::new(decoder);
harness.ignore(["invalid/control/comment-cr.toml"]).unwrap();
harness
.ignore([
"invalid/control/comment-cr.toml",
"valid/string/escape-esc.toml",
"invalid/table/duplicate-key-dotted-table.toml",
"invalid/table/duplicate-key-dotted-table2.toml",
])
.unwrap();
harness.test();
}
4 changes: 3 additions & 1 deletion crates/toml_edit/tests/easy_decoder_compliance.rs
Expand Up @@ -8,7 +8,9 @@ fn main() {
harness
.ignore([
"invalid/control/comment-cr.toml",
"invalid/table/append-with-dotted-keys-2.toml",
"valid/string/escape-esc.toml",
"invalid/table/duplicate-key-dotted-table.toml",
"invalid/table/duplicate-key-dotted-table2.toml",
])
.unwrap();
harness.test();
Expand Down
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 12
|
1 | array = [1,,2]
| ^
Invalid array
Expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 14
|
1 | array = [1,2,,]
| ^
Invalid array
Expected `]`
@@ -0,0 +1,6 @@
TOML parse error at line 5, column 1
|
5 | [a.c]
| ^
Invalid table header
Dotted key `a` attempted to extend non-table type (array)
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 5
|
1 | a = falsify
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 5
|
1 | a = fals
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 5
|
1 | a = truthy
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 5
|
1 | a = tru
| ^
Invalid string
Expected `"`, `'`
6 changes: 6 additions & 0 deletions crates/toml_edit/tests/fixtures/invalid/bool/just-f.stderr
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 5
|
1 | a = f
| ^
Invalid string
Expected `"`, `'`
6 changes: 6 additions & 0 deletions crates/toml_edit/tests/fixtures/invalid/bool/just-t.stderr
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 5
|
1 | a = t
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 10
|
1 | a = falsey
| ^
Expected newline, `#`
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 9
|
1 | a = truer
| ^
Expected newline, `#`
@@ -0,0 +1,4 @@
TOML parse error at line 2, column 1
|
2 |
| ^
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 17
|
1 | bare-formfeed =
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 21
|
1 | bare-vertical-tab =
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 45
|
1 | comment-cr = "Carriage return in comment" #
a=1
| ^
Expected newline, `#`
Binary file modified crates/toml_edit/tests/fixtures/invalid/control/control.stderr
Binary file not shown.
@@ -0,0 +1,5 @@
TOML parse error at line 2, column 15
|
2 | d = 2006-01-01T24:00:00-00:00
| ^
Expected newline, `#`

This file was deleted.

@@ -0,0 +1,6 @@
TOML parse error at line 3, column 13
|
3 | d = 2006-01-32T00:00:00-00:00
| ^
Invalid date-time
Value is out of range
@@ -0,0 +1,6 @@
TOML parse error at line 3, column 13
|
3 | d = 2006-01-00T00:00:00-00:00
| ^
Invalid date-time
Value is out of range
@@ -0,0 +1,6 @@
TOML parse error at line 2, column 19
|
2 | d = 2006-01-01T00:60:00-00:00
| ^
Invalid date-time
Value is out of range
@@ -0,0 +1,6 @@
TOML parse error at line 2, column 10
|
2 | d = 2006-13-01T00:00:00-00:00
| ^
Invalid date-time
Value is out of range
@@ -0,0 +1,6 @@
TOML parse error at line 2, column 10
|
2 | d = 2007-00-01T00:00:00-00:00
| ^
Invalid date-time
Value is out of range
@@ -0,0 +1,6 @@
TOML parse error at line 3, column 22
|
3 | d = 2006-01-01T00:00:61-00:00
| ^
Invalid date-time
Value is out of range
@@ -0,0 +1,6 @@
TOML parse error at line 3, column 1
|
3 | [a.b]
| ^
Invalid table header
Dotted key `a` attempted to extend non-table type (inline table)
@@ -0,0 +1,5 @@
TOML parse error at line 3, column 1
|
3 | a={}
| ^
Duplicate key `a` in document root
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 20
|
1 | incomplete-bin = 0b
| ^
Invalid binary integer
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 20
|
1 | incomplete-hex = 0x
| ^
Invalid hexadecimal integer
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 20
|
1 | incomplete-oct = 0o
| ^
Invalid octal integer
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 9
|
1 | "key = x
| ^
Invalid basic string
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 5
|
1 | "key
| ^
Invalid basic string
5 changes: 5 additions & 0 deletions crates/toml_edit/tests/fixtures/invalid/key/start-dot.stderr
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 1
|
1 | .key = 1
| ^
Invalid key
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 6
|
1 | "key"
| ^
Expected `.`, `=`
@@ -0,0 +1,6 @@
TOML parse error at line 1, column 9
|
1 | "key" =
| ^
Invalid string
Expected `"`, `'`
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 13
|
1 | str = "val\Ux"
| ^
Invalid unicode 8-digit hex code
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 13
|
1 | str = "val\U0000000"
| ^
Invalid unicode 8-digit hex code
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 13
|
1 | str = "val\U0000"
| ^
Invalid unicode 8-digit hex code
@@ -0,0 +1,5 @@
TOML parse error at line 1, column 13
|
1 | str = "val\Ugggggggg"
| ^
Invalid unicode 8-digit hex code

This file was deleted.