Sign in
go
/
talks
/
498928a11ce2946598e88f5f02dbc87a62ab109d
/
.
/
2014
/
testing
/
test1
/
string_test.go
blob: c458ffeaea90e518e0eeaaa6ca5d19a46167cf9d [
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, want, got)
}
}