simplified string sorting by using a more suitable function

This commit is contained in:
Alexandr Bruyako 2019-06-30 23:20:32 +03:00
parent 3ca424050f
commit 16eeed2ad5
4 changed files with 10 additions and 10 deletions

View file

@ -72,8 +72,8 @@ func verifyDirectoryContents(t testing.TB, fs FS, dir string, want []string) {
t.Fatal(err)
}
sort.Sort(sort.StringSlice(want))
sort.Sort(sort.StringSlice(entries))
sort.Strings(want)
sort.Strings(entries)
if !cmp.Equal(want, entries) {
t.Error(cmp.Diff(want, entries))