feat: go 1.21

This commit is contained in:
Pete Davison
2023-08-29 21:04:01 +00:00
committed by Andrey Nering
parent 81148c312e
commit 8d0754af4d
11 changed files with 52 additions and 29 deletions

View File

@@ -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)
}