@@ -2,7 +2,7 @@ package sorts
2
2
3
3
import "testing"
4
4
5
- func TestBubble (t * testing.T ) {
5
+ func TestBubbleSort (t * testing.T ) {
6
6
for _ , test := range sortTests {
7
7
actual := bubbleSort (test .input )
8
8
pos , sorted := compareSlices (actual , test .expected )
@@ -28,7 +28,7 @@ func TestCountingSort(t *testing.T) {
28
28
}
29
29
}
30
30
31
- func TestSelection (t * testing.T ) {
31
+ func TestSelectionSort (t * testing.T ) {
32
32
for _ , test := range sortTests {
33
33
actual := selectionSort (test .input )
34
34
pos , sorted := compareSlices (actual , test .expected )
@@ -41,7 +41,7 @@ func TestSelection(t *testing.T) {
41
41
}
42
42
}
43
43
44
- func TestInsertion (t * testing.T ) {
44
+ func TestInsertionSort (t * testing.T ) {
45
45
for _ , test := range sortTests {
46
46
actual := insertionSort (test .input )
47
47
pos , sorted := compareSlices (actual , test .expected )
@@ -54,7 +54,7 @@ func TestInsertion(t *testing.T) {
54
54
}
55
55
}
56
56
57
- func TestMerge (t * testing.T ) {
57
+ func TestMergeSort (t * testing.T ) {
58
58
for _ , test := range sortTests {
59
59
actual := Mergesort (test .input )
60
60
pos , sorted := compareSlices (actual , test .expected )
@@ -67,7 +67,7 @@ func TestMerge(t *testing.T) {
67
67
}
68
68
}
69
69
70
- func TestHeap (t * testing.T ) {
70
+ func TestHeapSort (t * testing.T ) {
71
71
for _ , test := range sortTests {
72
72
actual := heapSort (test .input )
73
73
pos , sorted := compareSlices (actual , test .expected )
@@ -80,7 +80,7 @@ func TestHeap(t *testing.T) {
80
80
}
81
81
}
82
82
83
- func TestQuick (t * testing.T ) {
83
+ func TestQuickSort (t * testing.T ) {
84
84
for _ , test := range sortTests {
85
85
actual := quickSort (test .input )
86
86
pos , sorted := compareSlices (actual , test .expected )
@@ -93,7 +93,7 @@ func TestQuick(t *testing.T) {
93
93
}
94
94
}
95
95
96
- func TestShell (t * testing.T ) {
96
+ func TestShellSort (t * testing.T ) {
97
97
for _ , test := range sortTests {
98
98
actual := shellSort (test .input )
99
99
pos , sorted := compareSlices (actual , test .expected )
0 commit comments