github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/isc/test/find_test.go (about)

     1  package test
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/isyscore/isc-gobase/isc"
     7  )
     8  
     9  func TestIndexOf(t *testing.T) {
    10  	list := []int{2, 4, 6, 9, 12}
    11  	item := 10
    12  	res := isc.IndexOf(list, item)
    13  	t.Logf("%v\n", res)
    14  }