update validation tests to modern syntax.

This commit is contained in:
Chris Lattner
2016-07-02 17:10:37 -07:00
parent 06d0959cb8
commit 87db7b4cf2
10 changed files with 28 additions and 28 deletions

View File

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