summaryrefslogtreecommitdiff
path: root/src/sort/export_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/sort/export_test.go')
-rw-r--r--src/sort/export_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sort/export_test.go b/src/sort/export_test.go
new file mode 100644
index 000000000..b6e30ceb5
--- /dev/null
+++ b/src/sort/export_test.go
@@ -0,0 +1,9 @@
+// Copyright 2011 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package sort
+
+func Heapsort(data Interface) {
+ heapSort(data, 0, data.Len())
+}