github.com/niubaoshu/goutils@v0.0.0-20180828035119-e8e576f66c2b/quicksort_test.go (about) 1 package goutils 2 3 import ( 4 "fmt" 5 "testing" 6 ) 7 8 func TestQuickSort(t *testing.T) { 9 arr := []int{3, 5, 49, 2, 4, 2, 1} 10 qsort(arr) 11 fmt.Println(arr) 12 }