diff options
| author | Paul Buetow <paul@buetow.org> | 2020-07-14 09:58:13 +0100 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2020-07-14 09:58:13 +0100 |
| commit | 1a175ce919dddb8d3a58533f3827a105483442c0 (patch) | |
| tree | e18b0936bc06050eb25c883b94ff3732df4b8113 /sort/test.go | |
| parent | 6c598a53d3366d8ff7250bdc1ce29fa4c36ec246 (diff) | |
refactored testing and benchmarking
Diffstat (limited to 'sort/test.go')
| -rw-r--r-- | sort/test.go | 19 |
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) -} |
