Skip to content

Commit

Permalink
Add another inline-table overwrite test case
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Jan 2, 2024
1 parent bdad0ff commit 8bdabb2
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 7 deletions.
6 changes: 1 addition & 5 deletions cmd/toml-test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ func parseFlags() (tomltest.Runner, []string, int, string, bool, bool) {
printSkip = f.Bool(false, "print-skip")
intAsFloat = f.Bool(false, "int-as-float")
errors = f.String("", "errors")
// TODO: ideally I'd like to set this even lower, but this stupid
// toml-rb is ridiculously slow and sometimes hits ~800ms on my laptop.
// See if we can improve that, and should probably split up some of
// these larger valid tests too.
timeout = f.String("1s", "timeout")
timeout = f.String("1s", "timeout")
)
zli.F(f.Parse())
if help.Bool() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions tests/invalid/inline-table/overwrite-10.toml
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 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

0 comments on commit 8bdabb2

Please sign in to comment.