Lines Matching refs:tc
965 for _, tc := range testCases {
966 actual := string(f([]byte(tc.in)))
967 if actual != tc.out {
968 t.Errorf("%s(%q) = %q; want %q", funcName, tc.in, actual, tc.out)
1215 for _, tc := range trimTests {
1216 name := tc.f
1235 actual = string(f([]byte(tc.in), tc.arg))
1237 actual = string(fb([]byte(tc.in), []byte(tc.arg)))
1239 if actual != tc.out {
1240 t.Errorf("%s(%q, %q) = %q; want %q", name, tc.in, tc.arg, actual, tc.out)
1285 for _, tc := range trimFuncTests {
1286 actual := string(TrimFunc([]byte(tc.in), tc.f.f))
1287 if actual != tc.out {
1288 t.Errorf("TrimFunc(%q, %q) = %q; want %q", tc.in, tc.f.name, actual, tc.out)
1321 for _, tc := range indexFuncTests {
1322 first := IndexFunc([]byte(tc.in), tc.f.f)
1323 if first != tc.first {
1324 t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first)
1326 last := LastIndexFunc([]byte(tc.in), tc.f.f)
1327 if last != tc.last {
1328 t.Errorf("LastIndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, last, tc.last)