1 package ini 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/assert" 7 ) 8 9 func TestIsInSlice(t *testing.T) { 10 ss := []string{"a", "b", "c"} 11 assert.True(t, inSlice("a", ss)) 12 assert.False(t, inSlice("d", ss)) 13 } 14
View as plain text