Commit febde388 authored by Robert Griesemer's avatar Robert Griesemer

sort.Search: more typos

R=r
CC=golang-dev
https://golang.org/cl/3042041
parent ffa9000b
...@@ -24,11 +24,11 @@ var tests = []struct { ...@@ -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},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment