fix: fix TestInsertionSort

This commit is contained in:
dudaodong committed 2022-03-26 21:06:05 +08:00
1 parent a5018c110c
commit 18e0031e0e
1 file changed
+1 -1
+1 -1
View File
@@ -92,7 +92,7 @@ func TestInsertionSort(t *testing.T) {
sortedPeopleByAge := InsertionSort(peoples, comparator) sortedPeopleByAge := InsertionSort(peoples, comparator)
t.Log(sortedPeopleByAge) 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) actual := fmt.Sprintf("%v", sortedPeopleByAge)
asssert.Equal(expected, actual) asssert.Equal(expected, actual)