github.com/billybanfield/evergreen@v0.0.0-20170525200750-eeee692790f7/util/math_test.go (about) 1 package util 2 3 import ( 4 "testing" 5 6 . "github.com/smartystreets/goconvey/convey" 7 ) 8 9 func TestMinInts(t *testing.T) { 10 Convey("Min should return the minimum of the inputs passed in, or the largest possible int with no inputs", t, func() { 11 So(Min(), ShouldEqual, int(^uint(0)>>1)) 12 So(Min(1), ShouldEqual, 1) 13 So(Min(1, 5, 2, -10, 0), ShouldEqual, -10) 14 }) 15 }