Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCountByteNoMatch (0.26 sec)

  1. src/bytes/bytes_test.go

    			}
    			testCountWindow(i, window)
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(0)
    			}
    		}
    	}
    }
    
    // Make sure we don't count bytes outside our window
    func TestCountByteNoMatch(t *testing.T) {
    	b := make([]byte, 5015)
    	windows := []int{1, 2, 3, 4, 15, 16, 17, 31, 32, 33, 63, 64, 65, 128}
    	for i := 0; i <= len(b); i++ {
    		for _, window := range windows {
    			if window > len(b[i:]) {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 19 19:09:04 UTC 2024
    - 61.2K bytes
    - Viewed (0)
Back to top