- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BenchmarkToUpper (0.15 sec)
-
src/strings/strings_test.go
for _, tc := range toValidUTF8Tests { got := ToValidUTF8(tc.in, tc.repl) if got != tc.out { t.Errorf("ToValidUTF8(%q, %q) = %q; want %q", tc.in, tc.repl, got, tc.out) } } } func BenchmarkToUpper(b *testing.B) { for _, tc := range upperTests { b.Run(tc.in, func(b *testing.B) { for i := 0; i < b.N; i++ { actual := ToUpper(tc.in) if actual != tc.out {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/bytes/bytes_test.go
} } func TestToUpper(t *testing.T) { runStringTests(t, ToUpper, "ToUpper", upperTests) } func TestToLower(t *testing.T) { runStringTests(t, ToLower, "ToLower", lowerTests) } func BenchmarkToUpper(b *testing.B) { for _, tc := range upperTests { tin := []byte(tc.in) b.Run(tc.in, func(b *testing.B) { for i := 0; i < b.N; i++ { actual := ToUpper(tin) if !Equal(actual, tc.out) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 56.5K bytes - Viewed (0)