Stop using curried function declaration syntax.

It will be removed from future versions of Swift.
This commit is contained in:
Kare Morstol
2016-02-23 01:42:23 +01:00
parent 4ddef113cb
commit 0aa76e9017
@@ -11,9 +11,11 @@ import XCTest
class LazySplitGenerator_Tests: XCTestCase {
func lazySplitToArray (allowEmptySlices allowEmptySlices: Bool) (_ s: String) -> [String] {
let seq: LazySplitSequence = s.characters.lazy.split("," as Character, allowEmptySlices: allowEmptySlices)
return seq.map {String($0)}
func lazySplitToArray (allowEmptySlices allowEmptySlices: Bool) -> (String) -> [String] {
return { s in
let seq: LazySplitSequence = s.characters.lazy.split("," as Character, allowEmptySlices: allowEmptySlices)
return seq.map {String($0)}
}
}
func testStringsLazySplit_AllowingEmptySlices () {