Skip to content

Commit 6b16cbd

Browse files
authored
Update toml-test test cases from upstream (#456)
1 parent 011fa2b commit 6b16cbd

File tree

661 files changed

+3548
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

661 files changed

+3548
-194
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"test": {
66
"strategy": {
77
"matrix": {
8-
"go-version": ["1.18.x", "1.24.x"],
8+
"go-version": ["1.18.x", "1.25.x"],
99
"os": ["ubuntu-latest", "macos-latest", "windows-latest"]
1010
}
1111
},

error_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@ func TestErrorPosition(t *testing.T) {
1818
tests := []struct {
1919
test, err string
2020
}{
21-
{"array/missing-separator-2.toml", `
21+
{"array/missing-separator-02.toml", `
2222
toml: error: expected a comma (',') or array terminator (']'), but got '2'
2323
2424
At line 1, column 13:
2525
2626
1 | wrong = [ 1 2 3 ]
2727
^`},
2828

29-
{"array/no-close-1.toml", `
29+
{"array/no-close-01.toml", `
3030
toml: error: expected a comma (',') or array terminator (']'), but got end of file
3131
32-
At line 1, column 23:
32+
At line 1, column 24:
3333
34-
1 | no-close-1 = [ 1, 2, 3
35-
^`},
34+
1 | no-close-01 = [ 1, 2, 3
35+
^`},
3636

37-
{"array/tables-2.toml", `
37+
{"array/tables-02.toml", `
3838
toml: error: Key 'fruit.variety' has already been defined.
3939
4040
At line 9, column 4-8:
@@ -52,15 +52,15 @@ At line 2, column 5-15:
5252
2 | d = 2006-01-30T
5353
^^^^^^^^^^^`},
5454

55-
{"key/without-value-1.toml", `
55+
{"key/without-value-01.toml", `
5656
toml: error: expected '.' or '=', but got '\n' instead
5757
5858
At line 1, column 4:
5959
6060
1 | key
6161
^`},
6262
// Position looks wonky, but test has trailing space, so it's correct.
63-
{"key/without-value-2.toml", `
63+
{"key/without-value-02.toml", `
6464
toml: error: expected value but found '\n' instead
6565
6666
At line 1, column 7:

0 commit comments

Comments
 (0)