diff options
| author | Andrew Gerrand <adg@golang.org> | 2011-07-08 10:52:50 +1000 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2011-07-08 10:52:50 +1000 |
| commit | 5bcbcab3118368e87cd676722db711d54d590403 (patch) | |
| tree | fb11b7c18e728feefca7155c48a946e16bdd1244 /src/pkg/index/suffixarray/suffixarray_test.go | |
| parent | e67a2504a15ac579758f8dc494d4d4e2b5fc13ab (diff) | |
| download | go-5bcbcab3118368e87cd676722db711d54d590403.tar.xz | |
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
Diffstat (limited to 'src/pkg/index/suffixarray/suffixarray_test.go')
| -rw-r--r-- | src/pkg/index/suffixarray/suffixarray_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/index/suffixarray/suffixarray_test.go b/src/pkg/index/suffixarray/suffixarray_test.go index b1499027ad..385ff0e56a 100644 --- a/src/pkg/index/suffixarray/suffixarray_test.go +++ b/src/pkg/index/suffixarray/suffixarray_test.go @@ -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)) |
