Commit 07c103f6 authored by Russ Cox's avatar Russ Cox

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
parent e62e595e
......@@ -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 {
......
......@@ -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
}
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