github.com/ohlinux/git-lfs@v1.5.4/tools/math_test.go (about) 1 package tools 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func MinIntPicksTheSmallerInt(t *testing.T) { 10 assert.Equal(t, -1, MinInt(-1, 1)) 11 } 12 13 func MaxIntPicksTheBiggertInt(t *testing.T) { 14 assert.Equal(t, 1, MaxInt(-1, 1)) 15 }