Skip to content

Commit 515f11b

Browse files
committed
rename filename
1 parent c4d8572 commit 515f11b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sorted.go renamed to sortArray.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sort"
66
)
77

8-
func sorted(arr []string, lang string) {
8+
func sortArray(arr []string, lang string) {
99
less := collate.IndexString(lang)
1010
sort.SliceStable(arr, func(i, j int) bool {
1111
return less(arr[i], arr[j])

sorted_test.go renamed to sortArray_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func TestSorted(t *testing.T) {
99
arr := []string{"b", "ą", "ć", "c", "a", "ż", "ś"}
1010

1111
expected := []string{"a", "ą", "b", "c", "ć", "ś", "ż"}
12-
sorted(arr, "POLISH_CI")
12+
sortArray(arr, "POLISH_CI")
1313

1414
if strings.Join(arr, ",") != strings.Join(expected, ",") {
1515
t.Errorf("Expected %v, but got %v", expected, arr)

0 commit comments

Comments
 (0)