Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SplitAfterSeq (0.09 sec)

  1. src/bytes/bytes_test.go

    			t.Errorf(`Split(%q, %q, %d) = %v; want %v`, tt.s, tt.sep, tt.n, result, tt.a)
    			continue
    		}
    
    		if tt.n < 0 {
    			b := sliceOfString(slices.Collect(SplitAfterSeq([]byte(tt.s), []byte(tt.sep))))
    			if !slices.Equal(b, tt.a) {
    				t.Errorf(`collect(SplitAfterSeq(%q, %q)) = %v; want %v`, tt.s, tt.sep, b, tt.a)
    			}
    		}
    
    		if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top