summaryrefslogtreecommitdiff
path: root/sort/test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2020-07-14 09:58:13 +0100
committerPaul Buetow <paul@buetow.org>2020-07-14 09:58:13 +0100
commit1a175ce919dddb8d3a58533f3827a105483442c0 (patch)
treee18b0936bc06050eb25c883b94ff3732df4b8113 /sort/test.go
parent6c598a53d3366d8ff7250bdc1ce29fa4c36ec246 (diff)
refactored testing and benchmarking
Diffstat (limited to 'sort/test.go')
-rw-r--r--sort/test.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/sort/test.go b/sort/test.go
deleted file mode 100644
index fa12555..0000000
--- a/sort/test.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package sort
-
-import (
- "algorithms/ds"
- "fmt"
- "testing"
-)
-
-func test(name string, length int, sort func([]ds.Comparer) []ds.Comparer, t *testing.T) {
- cb := func(t *testing.T) {
- t.Parallel()
- a := ds.RandomIntegers(length, length)
- a = sort(a)
- if !Sorted(a) {
- t.Errorf("Array not sorted: %v", a)
- }
- }
- t.Run(fmt.Sprintf("Test%s%d", name, length), cb)
-}