mirror of
https://github.com/golang/go
synced 2024-11-21 18:14:42 -07:00
sort.Search: more typos
R=r CC=golang-dev https://golang.org/cl/3042041
This commit is contained in:
parent
ffa9000b75
commit
febde3882b
@ -24,11 +24,11 @@ var tests = []struct {
|
||||
}{
|
||||
{"empty", 0, nil, 0},
|
||||
{"1 1", 1, func(i int) bool { return i <= 1 }, 0},
|
||||
{"1 true", 1, func(i int) bool { return false }, 0},
|
||||
{"1 false", 1, func(i int) bool { return true }, 0},
|
||||
{"1 false", 1, func(i int) bool { return false }, 0},
|
||||
{"1 true", 1, func(i int) bool { return true }, 0},
|
||||
{"1e9 991", 1e9, func(i int) bool { return i <= 991 }, 991},
|
||||
{"1e9 true", 1e9, func(i int) bool { return false }, 0},
|
||||
{"1e9 false", 1e9, func(i int) bool { return true }, 1e9 - 1},
|
||||
{"1e9 false", 1e9, func(i int) bool { return false }, 0},
|
||||
{"1e9 true", 1e9, func(i int) bool { return true }, 1e9 - 1},
|
||||
{"data -20", len(data), f(data, -20), 0},
|
||||
{"data -10", len(data), f(data, -10), 0},
|
||||
{"data -9", len(data), f(data, -9), 0},
|
||||
|
Loading…
Reference in New Issue
Block a user