Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Doesn (0.13 sec)

  1. src/bytes/bytes_test.go

    			if window > len(b[i:]) {
    				window = len(b[i:])
    			}
    			// Fill the window with non-match
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(100)
    			}
    			// Try to find something that doesn't exist
    			p := Count(b[i:i+window], []byte{0})
    			if p != 0 {
    				t.Errorf("TestCountByteNoMatch(%q, 0) = %d", b[i:i+window], p)
    			}
    			for j := 0; j < window; j++ {
    				b[i+j] = byte(0)
    			}
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top