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

sort: remove testing cycle

import cycle:
        "testing"
        imports "flag"
        imports "sort"
        imports "testing"

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4811048
This commit is contained in:
Russ Cox 2011-07-22 21:17:46 -04:00
parent e62e595e7a
commit 07c103f6e6
2 changed files with 14 additions and 3 deletions

View File

@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sort
package sort_test
import "testing"
import (
. "sort"
"testing"
)
func f(a []int, x int) func(int) bool {
return func(i int) bool {

View File

@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sort
package sort_test
import (
"fmt"
"rand"
. "sort"
"strconv"
"testing"
)
@ -271,3 +272,10 @@ func TestBentleyMcIlroy(t *testing.T) {
}
}
}
func min(a, b int) int {
if a < b {
return a
}
return b
}