mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 10:36:43 +00:00
15 lines
242 B
Go
15 lines
242 B
Go
package underscore_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
u "github.com/rjNemo/underscore"
|
|
)
|
|
|
|
func TestMax(t *testing.T) {
|
|
nums := []int{1, 9, 2, 8, 3, 7, 4, 6, 5}
|
|
want := 9
|
|
assert.Equal(t, want, u.Max(nums))
|
|
}
|