Skip to content

Commit efedf3a

Browse files
author
mattan
committed
Added Radix Sort
1 parent 6f4c635 commit efedf3a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sorts/sorts_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ func BenchmarkBubble(b *testing.B) {
132132
}
133133
}
134134

135-
//func BenchmarkSelection(b *testing.B) {
136-
// for i := 0; i < b.N; i++ {
137-
// for _, test := range sortTests {
138-
// selectionSort(test.input)
139-
// }
140-
// }
141-
//}
135+
func BenchmarkSelection(b *testing.B) {
136+
for i := 0; i < b.N; i++ {
137+
for _, test := range sortTests {
138+
selectionSort(test.input)
139+
}
140+
}
141+
}
142142

143143
func BenchmarkInsertion(b *testing.B) {
144144
for i := 0; i < b.N; i++ {

0 commit comments

Comments
 (0)