Skip to content

Commit

Permalink
Don't use +inf in .json files
Browse files Browse the repository at this point in the history
Fixes #150
  • Loading branch information
arp242 committed May 24, 2024
1 parent 0ce094c commit eff8d3a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/files-toml-1.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ valid/float/inf-and-nan.json
valid/float/inf-and-nan.toml
valid/float/long.json
valid/float/long.toml
valid/float/max-int.json
valid/float/max-int.toml
valid/float/underscore.json
valid/float/underscore.toml
valid/float/zero.json
Expand Down Expand Up @@ -497,6 +499,8 @@ valid/inline-table/nest.json
valid/inline-table/nest.toml
valid/inline-table/spaces.json
valid/inline-table/spaces.toml
valid/integer/float64-max.json
valid/integer/float64-max.toml
valid/integer/integer.json
valid/integer/integer.toml
valid/integer/literals.json
Expand Down
4 changes: 4 additions & 0 deletions tests/files-toml-1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ valid/float/inf-and-nan.json
valid/float/inf-and-nan.toml
valid/float/long.json
valid/float/long.toml
valid/float/max-int.json
valid/float/max-int.toml
valid/float/underscore.json
valid/float/underscore.toml
valid/float/zero.json
Expand Down Expand Up @@ -491,6 +493,8 @@ valid/inline-table/newline.json
valid/inline-table/newline.toml
valid/inline-table/spaces.json
valid/inline-table/spaces.toml
valid/integer/float64-max.json
valid/integer/float64-max.toml
valid/integer/integer.json
valid/integer/integer.toml
valid/integer/literals.json
Expand Down
2 changes: 1 addition & 1 deletion tests/valid/float/inf-and-nan.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"infinity_plus": {
"type": "float",
"value": "+inf"
"value": "inf"
},
"nan": {
"type": "float",
Expand Down

0 comments on commit eff8d3a

Please sign in to comment.