replace zxq.co/ripple/hanayo
This commit is contained in:
19
vendor/github.com/felipeweb/gopher-utils/math_test.go
generated
vendored
Normal file
19
vendor/github.com/felipeweb/gopher-utils/math_test.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package gopher_utils
|
||||
|
||||
import (
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
"math"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_Pow(t *testing.T) {
|
||||
Convey("Power int", t, func() {
|
||||
for x := 0; x < 10; x++ {
|
||||
for y := 0; y < 8; y++ {
|
||||
result := PowInt(x, y)
|
||||
result_float := math.Pow(float64(x), float64(y))
|
||||
So(result, ShouldEqual, int(result_float))
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user