From 18e0031e0ea8503579d29b1de42690037010afee Mon Sep 17 00:00:00 2001 From: dudaodong Date: Sat, 26 Mar 2022 21:06:05 +0800 Subject: [PATCH] fix: fix TestInsertionSort --- algorithm/sorter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/algorithm/sorter_test.go b/algorithm/sorter_test.go index 0a534dd..a3bba50 100644 --- a/algorithm/sorter_test.go +++ b/algorithm/sorter_test.go @@ -92,7 +92,7 @@ func TestInsertionSort(t *testing.T) { sortedPeopleByAge := InsertionSort(peoples, comparator) t.Log(sortedPeopleByAge) - expected := "[{e 28} {c 17} {a 20} {b 10} {d 8}]" + expected := "[{e 28} {a 20} {c 17} {b 10} {d 8}]" actual := fmt.Sprintf("%v", sortedPeopleByAge) asssert.Equal(expected, actual)