Skip to content

Commit 39bed99

Browse files
committed
fix IsFloat64JSONInteger
closes #59
1 parent ef31b6b commit 39bed99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func TestIsFloat64AJSONInteger(t *testing.T) {
209209
assert.True(t, IsFloat64AJSONInteger(minJSONFloat))
210210
assert.True(t, IsFloat64AJSONInteger(1/0.01*67.15000001))
211211
assert.False(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64))
212-
assert.False(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/2))
212+
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/2))
213213
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/3))
214214
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/4))
215215
}

0 commit comments

Comments
 (0)