[gardening] "[ a, b ]" → "[a, b]" (#2227)

This commit is contained in:
practicalswift
2016-04-17 21:02:18 +02:00
parent d95921e5a8
commit c2107f456c
26 changed files with 143 additions and 142 deletions

View File

@@ -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