diff --git a/internal/model/menu_hint_test.go b/internal/model/menu_hint_test.go index 18610c10..277a715e 100644 --- a/internal/model/menu_hint_test.go +++ b/internal/model/menu_hint_test.go @@ -44,9 +44,7 @@ func TestMenuHintsSort(t *testing.T) { u := uu[k] t.Run(k, func(t *testing.T) { o := make(model.MenuHints, len(u.hh)) - for i := range u.hh { - o[i] = u.hh[i] - } + assert.Equal(t, copy(o, u.hh), len(u.hh)) sort.Sort(u.hh) for i, idx := range u.e { assert.Equal(t, o[idx], u.hh[i])