Commit cce873e9 authored by Ming Deng's avatar Ming Deng

Fix review

parent 406517db
......@@ -21,11 +21,11 @@ import (
"sort"
)
func SortInt64(slice []int64) {
func Int64(slice []int64) {
sort.Sort(Int64Slice(slice))
}
func SortInt32(slice []int32) {
func Int32(slice []int32) {
sort.Sort(Int32Slice(slice))
}
......
......@@ -27,7 +27,7 @@ import (
func TestSortInt32(t *testing.T) {
data := []int32{3, 5, 1, 9, 0, 2, 2}
SortInt32(data)
Int32(data)
assert.Equal(t, int32(0), data[0])
assert.Equal(t, int32(1), data[1])
assert.Equal(t, int32(2), data[2])
......@@ -39,7 +39,7 @@ func TestSortInt32(t *testing.T) {
func TestSortInt64(t *testing.T) {
data := []int64{3, 5, 1, 9, 0, 2, 2}
SortInt64(data)
Int64(data)
assert.Equal(t, int64(0), data[0])
assert.Equal(t, int64(1), data[1])
assert.Equal(t, int64(2), data[2])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment