github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/sorts/stdsortint/sort_test.go (about) 1 package stdsortint 2 3 import ( 4 "testing" 5 ) 6 7 func TestSort(t *testing.T) { 8 var data = []int{74, 59, 238, -784, 9845, 959, 905, 0, 0, 42, 7586, -5467984, 7586} 9 Sort(data) 10 11 if !IsSorted(data) { 12 t.Errorf(" got %v", data) 13 } 14 }