Home | History | Annotate | Download | only in strings

Lines Matching refs:tc

289 	for i, tc := range testCases {
290 if s := tc.r.Replace(tc.in); s != tc.out {
291 t.Errorf("%d. Replace(%q) = %q, want %q", i, tc.in, s, tc.out)
294 n, err := tc.r.WriteString(&buf, tc.in)
300 if got != tc.out {
301 t.Errorf("%d. WriteString(%q) wrote %q, want %q", i, tc.in, got, tc.out)
304 if n != len(tc.out) {
306 i, tc.in, n, len(tc.out), tc.out)
325 for i, tc := range algorithmTestCases {
326 got := fmt.Sprintf("%T", tc.r.Replacer())
327 if got != tc.want {
328 t.Errorf("%d. algorithm = %s, want %s", i, got, tc.want)
342 for i, tc := range algorithmTestCases {
343 n, err := tc.r.WriteString(errWriter{}, "abc")
399 for _, tc := range testCases {
400 keys := Split(tc.in, ";")
407 // Remove tabs from tc.out
408 wantbuf := make([]byte, 0, len(tc.out))
409 for i := 0; i < len(tc.out); i++ {
410 if tc.out[i] != '\t' {
411 wantbuf = append(wantbuf, tc.out[i])
417 t.Errorf("PrintTrie(%q)\ngot\n%swant\n%s", tc.in, got, want)