mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
update validation tests to modern syntax.
This commit is contained in:
@@ -306,7 +306,7 @@ ArrayTestSuite.test("${array_type}/map") {
|
||||
}
|
||||
|
||||
ArrayTestSuite.test("${array_type}/flatMap") {
|
||||
let enumerate : Int -> ${array_type}<Int> =
|
||||
let enumerate : (Int) -> ${array_type}<Int> =
|
||||
{ return ${array_type}(1..<($0 + 1)) }
|
||||
expectEqualSequence([], ${array_type}().flatMap(enumerate))
|
||||
expectEqualSequence([ 1 ], ${array_type}([ 1 ]).flatMap(enumerate))
|
||||
|
||||
Reference in New Issue
Block a user