- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for trimFunc (0.07 sec)
-
src/bytes/bytes_test.go
func TestTrimFunc(t *testing.T) { for _, tc := range trimFuncTests { trimmers := []struct { name string trim func(s []byte, f func(r rune) bool) []byte out []byte }{ {"TrimFunc", TrimFunc, tc.trimOut}, {"TrimLeftFunc", TrimLeftFunc, tc.leftOut}, {"TrimRightFunc", TrimRightFunc, tc.rightOut}, } for _, trimmer := range trimmers { actual := trimmer.trim([]byte(tc.in), tc.f.f)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Aug 19 19:09:04 UTC 2024 - 61.2K bytes - Viewed (0)