Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions base62_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ func TestLexographicOrdering(t *testing.T) {

if !sort.StringsAreSorted(unsortedStrings) {
sortedStrings := make([]string, len(unsortedStrings))
for i, s := range unsortedStrings {
sortedStrings[i] = s
}
copy(sortedStrings, unsortedStrings)
sort.Strings(sortedStrings)

t.Fatal("base62 encoder does not produce lexographically sorted output.",
"expected:", sortedStrings,
"actual:", unsortedStrings)
Expand Down