Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSearchExhaustive (0.14 sec)

  1. src/sort/search_test.go

    		runSearchWrappers()
    	}
    }
    
    // Abstract exhaustive test: all sizes up to 100,
    // all possible return values. If there are any small
    // corner cases, this test exercises them.
    func TestSearchExhaustive(t *testing.T) {
    	for size := 0; size <= 100; size++ {
    		for targ := 0; targ <= size; targ++ {
    			i := Search(size, func(i int) bool { return i >= targ })
    			if i != targ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
Back to top