Skip to content

Commit

Permalink
Completed unit test to cover the linting job
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <[email protected]>
  • Loading branch information
fredbi committed Jul 4, 2019
1 parent 5c77b6a commit 39c4025
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ func TestIsFloat64AJSONInteger(t *testing.T) {
assert.True(t, IsFloat64AJSONInteger(maxJSONFloat))
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/3))
assert.True(t, IsFloat64AJSONInteger(math.SmallestNonzeroFloat64/4))
}

func TestFormatBool(t *testing.T) {
Expand Down

0 comments on commit 39c4025

Please sign in to comment.