1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:50:21 -07:00

container/heap: fix circular dependency in test

Having the test be in the container/heap package yields a cycle
  container/heap (for the test)
  -> testing
  -> time
  -> container/heap (for timerHeap)

Occasionally the linker would get mixed up, resulting in a test panic
in a very weird place.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/4395042
This commit is contained in:
David Symonds 2011-04-22 16:29:05 -04:00 committed by Russ Cox
parent f589728ff4
commit d911b872ce

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 heap
package heap_test
import (
"testing"
"container/vector"
. "container/heap"
)