mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into swift-3-indexing-model
This commit is contained in:
@@ -79,13 +79,13 @@ Algorithm.test("sorted/strings")
|
||||
"https://bugs.swift.org/browse/SR-530"))
|
||||
.code {
|
||||
expectEqual(
|
||||
[ "Banana", "apple", "cherry" ],
|
||||
[ "apple", "Banana", "cherry" ].sorted())
|
||||
["Banana", "apple", "cherry"],
|
||||
["apple", "Banana", "cherry"].sorted())
|
||||
|
||||
let s = ["apple", "Banana", "cherry"].sorted() {
|
||||
$0.characters.count > $1.characters.count
|
||||
}
|
||||
expectEqual([ "Banana", "cherry", "apple" ], s)
|
||||
expectEqual(["Banana", "cherry", "apple"], s)
|
||||
}
|
||||
|
||||
// A wrapper around Array<T> that disables any type-specific algorithm
|
||||
|
||||
Reference in New Issue
Block a user