Sign in
go
/
website
/
6b9583b28385477c088e8c70a2f6012251bdd0e7
/
.
/
_content
/
talks
/
2014
/
testing
/
test1
/
string_test.go
blob: 6061882d29d6e35a5d2eb7aafd5564dea0f41e3b [
file
] [
log
] [
blame
]
package strings_test
import (
"strings"
"testing"
)
func TestIndex(t *testing.T) {
const s, sep, want = "chicken", "ken", 4
got := strings.Index(s, sep)
if got != want {
t.Errorf("Index(%q,%q) = %v; want %v", s, sep, got, want)
}
}