1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:44:39 -07:00

sort.Search: more typos

R=r
CC=golang-dev
https://golang.org/cl/3042041
This commit is contained in:
Robert Griesemer 2010-11-11 13:52:49 -08:00
parent ffa9000b75
commit febde3882b

View File

@ -24,11 +24,11 @@ var tests = []struct {
}{ }{
{"empty", 0, nil, 0}, {"empty", 0, nil, 0},
{"1 1", 1, func(i int) bool { return i <= 1 }, 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 false }, 0},
{"1 false", 1, func(i int) bool { return true }, 0}, {"1 true", 1, func(i int) bool { return true }, 0},
{"1e9 991", 1e9, func(i int) bool { return i <= 991 }, 991}, {"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 false }, 0},
{"1e9 false", 1e9, func(i int) bool { return true }, 1e9 - 1}, {"1e9 true", 1e9, func(i int) bool { return true }, 1e9 - 1},
{"data -20", len(data), f(data, -20), 0}, {"data -20", len(data), f(data, -20), 0},
{"data -10", len(data), f(data, -10), 0}, {"data -10", len(data), f(data, -10), 0},
{"data -9", len(data), f(data, -9), 0}, {"data -9", len(data), f(data, -9), 0},