mirror of
https://github.com/golang/go.git
synced 2025-10-30 16:20:58 +00:00
sort: rename helpers: s/Sort// in sort.Sort[Float64s|Ints|Strings]
Includes 'sorthelpers' gofix and updates to tree. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4631098
This commit is contained in:
parent
e67a2504a1
commit
5bcbcab311
19 changed files with 126 additions and 33 deletions
|
|
@ -141,7 +141,7 @@ func testLookup(t *testing.T, tc *testCase, x *Index, s string, n int) {
|
|||
// we cannot simply check that the res and exp lists are equal
|
||||
|
||||
// check that each result is in fact a correct match and there are no duplicates
|
||||
sort.SortInts(res)
|
||||
sort.Ints(res)
|
||||
for i, r := range res {
|
||||
if r < 0 || len(tc.source) <= r {
|
||||
t.Errorf("test %q, lookup %q, result %d (n = %d): index %d out of range [0, %d[", tc.name, s, i, n, r, len(tc.source))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue