Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for aAbB (0.07 sec)

  1. src/strings/strings_test.go

    	{"TrimRight", "abba", "", "abba"},
    	{"TrimRight", "", "123", ""},
    	{"TrimRight", "", "", ""},
    	{"TrimRight", "☺\xc0", "☺", "☺\xc0"},
    	{"TrimPrefix", "aabb", "a", "abb"},
    	{"TrimPrefix", "aabb", "b", "aabb"},
    	{"TrimSuffix", "aabb", "a", "aabb"},
    	{"TrimSuffix", "aabb", "b", "aab"},
    }
    
    func TestTrim(t *testing.T) {
    	for _, tc := range trimTests {
    		name := tc.f
    		var f func(string, string) string
    		switch name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    	{"TrimRight", "abba", "", "abba"},
    	{"TrimRight", "", "123", ""},
    	{"TrimRight", "", "", ""},
    	{"TrimRight", "☺\xc0", "☺", "☺\xc0"},
    	{"TrimPrefix", "aabb", "a", "abb"},
    	{"TrimPrefix", "aabb", "b", "aabb"},
    	{"TrimSuffix", "aabb", "a", "aabb"},
    	{"TrimSuffix", "aabb", "b", "aab"},
    }
    
    type TrimNilTest struct {
    	f   string
    	in  []byte
    	arg string
    	out []byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top