Skip to content

Commit

Permalink
测试IntToFloat
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotodian committed Apr 23, 2023
1 parent c50e958 commit 35f81f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ac/lib/bytes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ func TestFloatToInt(t *testing.T) {
}

func TestIntToFloat(t *testing.T) {
f := IntToFloat(70023, 2)
assert.Equal(t, 700.23, f)
f := IntToFloat(70023, 4)
assert.Equal(t, 7.0023, f)
}

0 comments on commit 35f81f8

Please sign in to comment.