-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fba15e5
commit 87ca853
Showing
171 changed files
with
676 additions
and
140 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
[files] | ||
extend-exclude = [ | ||
"crates/toml_edit/tests/fixtures/**", | ||
] | ||
|
||
[default.extend-words] | ||
ser = "ser" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 21 | ||
| | ||
1 | double-comma-1 = [1,,2] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/double-comma-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `]` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/double-comma-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `]` |
5 changes: 5 additions & 0 deletions
5
crates/toml_edit/tests/fixtures/invalid/array/extend-defined-aot.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TOML parse error at line 3, column 1 | ||
| | ||
3 | arr.val1=1 | ||
| ^ | ||
duplicate key `val1` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/missing-separator-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 14 | ||
| | ||
1 | arrr = [true false] | ||
| ^ | ||
invalid array | ||
expected `]` |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ts/fixtures/invalid/array/no-close.stderr → .../fixtures/invalid/array/no-close-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `]` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 21 | ||
| | ||
1 | no-close-3 = [42 #] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-4.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 25 | ||
| | ||
1 | no-close-4 = [{ key = 42 | ||
| ^ | ||
invalid inline table | ||
expected `}` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-5.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 27 | ||
| | ||
1 | no-close-5 = [{ key = 42} | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-6.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 26 | ||
| | ||
1 | no-close-6 = [{ key = 42 #}] | ||
| ^ | ||
invalid inline table | ||
expected `}` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-7.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 30 | ||
| | ||
1 | no-close-7 = [{ key = 42} #] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-close-8.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 16 | ||
| | ||
1 | no-close-8 = [ | ||
| ^ | ||
invalid array | ||
expected `]` |
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-comma-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 20 | ||
| | ||
1 | no-comma-1 = [true false] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-comma-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 18 | ||
| | ||
1 | no-comma-2 = [ 1 2 3 ] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/no-comma-3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 22 | ||
| | ||
1 | no-comma-3 = [ 1 #,] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/only-comma-1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 17 | ||
| | ||
1 | only-comma-1 = [,] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/array/only-comma-2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 17 | ||
| | ||
1 | only-comma-2 = [,,] | ||
| ^ | ||
invalid array | ||
expected `]` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/almost-false-with-extra.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/almost-false.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/almost-true-with-extra.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/almost-true.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 27 | ||
| | ||
1 | almost-false-with-extra = falsify | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/capitalized-false.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 28 | ||
| | ||
1 | capitalized-false = False | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/capitalized-true.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 28 | ||
| | ||
1 | capitalized-true = True | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/mixed-case-false.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 27 | ||
| | ||
1 | mixed-case-false = falsE | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
6 changes: 6 additions & 0 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/mixed-case-true.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
TOML parse error at line 1, column 27 | ||
| | ||
1 | mixed-case-true = trUe | ||
| ^ | ||
invalid string | ||
expected `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/mixed-case.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/starting-same-false.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, `#` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/starting-same-true.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, `#` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/wrong-case-false.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/bool/wrong-case-true.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `"`, `'` |
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/control/bare-formfeed.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
BIN
+16 Bytes
(110%)
crates/toml_edit/tests/fixtures/invalid/control/bare-null.stderr
Binary file not shown.
6 changes: 3 additions & 3 deletions
6
crates/toml_edit/tests/fixtures/invalid/control/comment-cr.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, `#` |
Oops, something went wrong.