- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestIndexFunc (0.06 sec)
-
src/bytes/bytes_test.go
{"\xc0☺\xc0", not(isValidRune), 0, 4}, {"\xc0☺\xc0\xc0", not(isValidRune), 0, 5}, {"ab\xc0a\xc0cd", not(isValidRune), 2, 4}, {"a\xe0\x80cd", not(isValidRune), 1, 2}, } func TestIndexFunc(t *testing.T) { for _, tc := range indexFuncTests { first := IndexFunc([]byte(tc.in), tc.f.f) if first != tc.first { t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)