Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestChunkPanics (0.18 sec)

  1. src/slices/iter_test.go

    			s := Clone(tc.s)
    			chunks[0] = append(chunks[0], -1)
    			if !Equal(s, tc.s) {
    				t.Errorf("slice was clobbered: %v, want %v", s, tc.s)
    			}
    		})
    	}
    }
    
    func TestChunkPanics(t *testing.T) {
    	for _, test := range []struct {
    		name string
    		x    []struct{}
    		n    int
    	}{
    		{
    			name: "cannot be less than 1",
    			x:    make([]struct{}, 0),
    			n:    0,
    		},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top