Skip to content

Commit

Permalink
Update toml-test
Browse files Browse the repository at this point in the history
This adds a failing test case for #403.
  • Loading branch information
arp242 committed Jan 2, 2024
1 parent 4223137 commit c299e75
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Set implicit "b", overwrite "b" (illegal!) and then set another implicit.
#
# Caused panic: https://github.com/BurntSushi/toml/issues/403
a = {b.a = 1, b = 2, b.c = 3}
4 changes: 2 additions & 2 deletions internal/toml-test/tests/valid/spec/float-2.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"sf1": {
"type": "float",
"value": "+inf"
"value": "inf"
},
"sf2": {
"type": "float",
"value": "+inf"
"value": "inf"
},
"sf3": {
"type": "float",
Expand Down
9 changes: 6 additions & 3 deletions toml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,19 @@ func runTomlTest(t *testing.T, includeNext bool, wantFail ...string) {
Parser: parser{},
RunTests: runTests,
SkipTests: []string{
// TODO: https://github.com/BurntSushi/toml/issues/403
"invalid/inline-table/overwrite-10",

// These tests are fine, just doesn't deal well with empty output.
"valid/comment/noeol",
"valid/comment/nonascii",

// TODO: fix this; we allow appending to tables, but shouldn't.
"invalid/array/extend-defined-aot",
"invalid/inline-table/duplicate-key-3",
"invalid/inline-table/overwrite-2",
"invalid/inline-table/overwrite-7",
"invalid/inline-table/overwrite-8",
"invalid/inline-table/overwrite-02",
"invalid/inline-table/overwrite-07",
"invalid/inline-table/overwrite-08",
"invalid/spec/inline-table-2-0",
"invalid/spec/table-9-1",
"invalid/table/append-to-array-with-dotted-keys",
Expand Down

0 comments on commit c299e75

Please sign in to comment.