Skip to content

Commit

Permalink
fix IsFloat64JSONInteger
Browse files Browse the repository at this point in the history
closes #59
  • Loading branch information
casualjim committed Feb 1, 2022
1 parent ef31b6b commit 39bed99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestIsFloat64AJSONInteger(t *testing.T) {
assert.True(t, IsFloat64AJSONInteger(minJSONFloat))
assert.True(t, IsFloat64AJSONInteger(1/0.01*67.15000001))
assert.False(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64))
assert.False(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/2))
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/2))
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/3))
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/4))
}
Expand Down

0 comments on commit 39bed99

Please sign in to comment.