(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestQuickSort(t *testing.T) { |
| 10 | list := utils.GetArrayOfSize(100) |
| 11 | |
| 12 | sort(list) |
| 13 | |
| 14 | for i := 0; i < len(list)-2; i++ { |
| 15 | if list[i] > list[i+1] { |
| 16 | fmt.Println(list) |
| 17 | t.Error() |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func benchmarkQuickSort(n int, b *testing.B) { |
| 23 | list := utils.GetArrayOfSize(n) |