This commit is contained in:
withchao
2023-02-02 16:08:08 +08:00
parent c3f6a0fa15
commit 0eb77e9b35
2 changed files with 51 additions and 0 deletions
+6
View File
@@ -42,3 +42,9 @@ func TestIndexOf(t *testing.T) {
fmt.Println(IndexOf(arr, 3))
}
func TestSort(t *testing.T) {
arr := []int{1, 1, 1, 4, 4, 5, 2, 3, 3, 3, 6}
fmt.Println(Sort(arr, false))
}