Skip to content

Commit

Permalink
Fix: Add test cases where JSON contains floats with trailing zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 27, 2022
1 parent c59d57a commit 55998e4
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
{
"foo": 9001
"foo": 3.1415
}
],
"foo": "bar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
},
{
"foo": 9001
"foo": 3.141500000
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"baz": 9000
},
{
"baz": 9001
"baz": 3.1415
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"baz": 9000
},
{
"baz": 9001
"baz": 3.141500000
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baz": 9000
},
{
"baz": 9001
"baz": 3.1415
}
],
"foo": "hello"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"baz": 9000
},
{
"baz": 9001
"baz": 3.141500000
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"baz": 9000
},
{
"baz": 9001
"baz": 3.1415
}
],
"foo": "hello"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"baz": 9000
},
{
"baz": 9001
"baz": 3.141500000
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"foo": 9000
},
{
"foo": 9001
"foo": 3.1415
}
],
"foo": "bar"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
},
{
"foo": 9001
"foo": 3.141500000
}
]
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1415
3.141500000
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1415
3.141500000
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1415
3.141500000
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1415
3.141500000
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"keywords": [
"foo",
"bar"
]
],
"extra": {
"foo": {
"value": 3.1415
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"keywords": [
"foo",
"bar"
]
],
"extra": {
"foo": {
"value": 3.14150000
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
"foo": {
"qux": "quux",
"bar": "baz"
},
"extra": {
"foo": {
"value": 3.1415
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
"foo": {
"qux": "quux",
"bar": "baz"
},
"extra": {
"foo": {
"value": 3.14150000
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@
"foo": {
"qux": "quux",
"bar": "baz"
},
"extra": {
"foo": {
"value": 3.1415
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@
"foo": {
"qux": "quux",
"bar": "baz"
},
"extra": {
"foo": {
"value": 3.14150000
}
}
}

0 comments on commit 55998e4

Please sign in to comment.