Skip to content

Commit

Permalink
fix unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
zc committed Mar 30, 2020
1 parent 892377e commit 5c87ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions types/helper_test.go
Expand Up @@ -17,9 +17,9 @@ func TestRound(t *testing.T) {
a = 0.1999998
assert.Equal(t, f(Round(a)), "0.2")
a = 1.999998
assert.Equal(t, f(Round(a)), "2")
assert.Equal(t, f(Round(a)), "1.999998")
a = 19.99998
assert.Equal(t, f(Round(a)), "20")
assert.Equal(t, f(Round(a)), "19.99998")
}

func TestHookOutput(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions utils/utils_test.go
Expand Up @@ -183,9 +183,9 @@ func TestRound(t *testing.T) {
a = 0.1999998
assert.Equal(t, f(Round(a)), "0.2")
a = 1.999998
assert.Equal(t, f(Round(a)), "2")
assert.Equal(t, f(Round(a)), "1.999998")
a = 19.99998
assert.Equal(t, f(Round(a)), "20")
assert.Equal(t, f(Round(a)), "19.99998")
}

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

0 comments on commit 5c87ebb

Please sign in to comment.