-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Add test cases where JSON contains floats with trailing zeros
- Loading branch information
1 parent
c59d57a
commit 55998e4
Showing
20 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
] | ||
}, | ||
{ | ||
"foo": 9001 | ||
"foo": 3.1415 | ||
} | ||
], | ||
"foo": "bar" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
] | ||
}, | ||
{ | ||
"foo": 9001 | ||
"foo": 3.141500000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
"baz": 3.1415 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
"baz": 3.141500000 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
"baz": 3.1415 | ||
} | ||
], | ||
"foo": "hello" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
"baz": 3.141500000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
"baz": 3.1415 | ||
} | ||
], | ||
"foo": "hello" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"baz": 9000 | ||
}, | ||
{ | ||
"baz": 9001 | ||
"baz": 3.141500000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"foo": 9000 | ||
}, | ||
{ | ||
"foo": 9001 | ||
"foo": 3.1415 | ||
} | ||
], | ||
"foo": "bar" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
] | ||
}, | ||
{ | ||
"foo": 9001 | ||
"foo": 3.141500000 | ||
} | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...aultJsonPointerSpecification/Json/IsScalar/Schema/HasReference/Number/Float/original.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1415 | ||
3.141500000 |
2 changes: 1 addition & 1 deletion
2
...tJsonPointerSpecification/Json/IsScalar/Schema/HasType/IsArray/Number/Float/original.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1415 | ||
3.141500000 |
2 changes: 1 addition & 1 deletion
2
...JsonPointerSpecification/Json/IsScalar/Schema/HasType/IsScalar/Number/Float/original.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1415 | ||
3.141500000 |
2 changes: 1 addition & 1 deletion
2
...thDefaultJsonPointerSpecification/Json/IsScalar/Schema/IsEmpty/Number/Float/original.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1415 | ||
3.141500000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,10 @@ | |
"keywords": [ | ||
"foo", | ||
"bar" | ||
] | ||
], | ||
"extra": { | ||
"foo": { | ||
"value": 3.1415 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,10 @@ | |
"keywords": [ | ||
"foo", | ||
"bar" | ||
] | ||
], | ||
"extra": { | ||
"foo": { | ||
"value": 3.14150000 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,10 @@ | |
"foo": { | ||
"qux": "quux", | ||
"bar": "baz" | ||
}, | ||
"extra": { | ||
"foo": { | ||
"value": 3.1415 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,10 @@ | |
"foo": { | ||
"qux": "quux", | ||
"bar": "baz" | ||
}, | ||
"extra": { | ||
"foo": { | ||
"value": 3.14150000 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,5 +56,10 @@ | |
"foo": { | ||
"qux": "quux", | ||
"bar": "baz" | ||
}, | ||
"extra": { | ||
"foo": { | ||
"value": 3.1415 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,5 +56,10 @@ | |
"foo": { | ||
"qux": "quux", | ||
"bar": "baz" | ||
}, | ||
"extra": { | ||
"foo": { | ||
"value": 3.14150000 | ||
} | ||
} | ||
} |