Home | History | Annotate | Download | only in strings

Lines Matching refs:tc

514 	for _, tc := range testCases {
515 actual := f(tc.in)
516 if actual != tc.out {
517 t.Errorf("%s(%q) = %q; want %q", funcName, tc.in, actual, tc.out)
660 for _, tc := range upperTests {
661 b.Run(tc.in, func(b *testing.B) {
663 actual := ToUpper(tc.in)
664 if actual != tc.out {
665 b.Errorf("ToUpper(%q) = %q; want %q", tc.in, actual, tc.out)
673 for _, tc := range lowerTests {
674 b.Run(tc.in, func(b *testing.B) {
676 actual := ToLower(tc.in)
677 if actual != tc.out {
678 b.Errorf("ToLower(%q) = %q; want %q", tc.in, actual, tc.out)
752 for _, tc := range trimTests {
753 name := tc.f
769 actual := f(tc.in, tc.arg)
770 if actual != tc.out {
771 t.Errorf("%s(%q, %q) = %q; want %q", name, tc.in, tc.arg, actual, tc.out)
780 for _, tc := range trimTests {
781 name := tc.f
797 actual := f(tc.in, tc.arg)
798 if actual != tc.out {
799 b.Errorf("%s(%q, %q) = %q; want %q", name, tc.in, tc.arg, actual, tc.out)
843 for _, tc := range trimFuncTests {
844 actual := TrimFunc(tc.in, tc.f.f)
845 if actual != tc.out {
846 t.Errorf("TrimFunc(%q, %q) = %q; want %q", tc.in, tc.f.name, actual, tc.out)
878 for _, tc := range indexFuncTests {
879 first := IndexFunc(tc.in, tc.f.f)
880 if first != tc.first {
881 t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first)
883 last := LastIndexFunc(tc.in, tc.f.f)
884 if last != tc.last {
885 t.Errorf("LastIndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, last, tc.last)