Re-gyb sorting (#9818)

This commit is contained in:
Ben Cohen
2017-05-21 16:59:46 -07:00
committed by GitHub
parent cf364ec58c
commit 02e2bd5380
5 changed files with 139 additions and 84 deletions

View File

@@ -229,7 +229,7 @@ Algorithm.test("sort3/simple")
[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 1, 2], [3, 2, 1]
]) {
var input = $0
_sort3(&input, 0, 1, 2, by: <)
_sort3(&input, 0, 1, 2)
expectEqual([1, 2, 3], input)
}