Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFieldsFunc (0.11 sec)

  1. src/bytes/bytes_test.go

    		}
    		if len(tt.a) > 0 {
    			if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    func TestFieldsFunc(t *testing.T) {
    	for _, tt := range fieldstests {
    		a := FieldsFunc([]byte(tt.s), unicode.IsSpace)
    		result := sliceOfString(a)
    		if !slices.Equal(result, tt.a) {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
Back to top