mirror of
https://github.com/go-task/task.git
synced 2026-07-03 01:18:48 +00:00
feat: go 1.21
This commit is contained in:
committed by
Andrey Nering
parent
81148c312e
commit
8d0754af4d
@@ -43,13 +43,7 @@ func TestSortFunc(t *testing.T) {
|
||||
om.Set(1, "one")
|
||||
om.Set(2, "two")
|
||||
om.SortFunc(func(a, b int) int {
|
||||
if a < b {
|
||||
return 1
|
||||
}
|
||||
if a > b {
|
||||
return -1
|
||||
}
|
||||
return 0
|
||||
return b - a
|
||||
})
|
||||
assert.Equal(t, []int{3, 2, 1}, om.s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user