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/insertion_test.go | |
| parent | 6c598a53d3366d8ff7250bdc1ce29fa4c36ec246 (diff) | |
refactored testing and benchmarking
Diffstat (limited to 'sort/insertion_test.go')
| -rw-r--r-- | sort/insertion_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/sort/insertion_test.go b/sort/insertion_test.go deleted file mode 100644 index 7be863d..0000000 --- a/sort/insertion_test.go +++ /dev/null @@ -1,17 +0,0 @@ -package sort - -import ( - "testing" -) - -func BenchmarkInsertion(b *testing.B) { - benchmark("Insertion", 10, Insertion, b) - benchmark("Insertion", 100, Insertion, b) - benchmark("Insertion", 1000, Insertion, b) -} - -func TestInsertion(t *testing.T) { - for i := 1; i <= 1000; i *= 10 { - test("Insertion", i, Insertion, t) - } -} |
