underscore/min_test.go
2022-01-01 21:16:39 -04:00

15 lines
242 B
Go

package underscore_test
import (
"testing"
"github.com/stretchr/testify/assert"
u "github.com/rjNemo/underscore"
)
func TestMin(t *testing.T) {
nums := []int{9, 2, 1, 8, 3, 7, 4, 6, 5}
want := 1
assert.Equal(t, want, u.Min(nums))
}