migrated most of the test cases over to the new -> syntax for functions; still can't compile or run the tests yet though :(, needs more work...
This commit is contained in:
@@ -25,7 +25,7 @@ class CollectionTest() : TestSupport() {
|
||||
data.all{it.length == 3}
|
||||
}
|
||||
assertNot {
|
||||
data.all{s => s.startsWith("b")}
|
||||
data.all{s -> s.startsWith("b")}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ class CollectionTest() : TestSupport() {
|
||||
we should be able to remove the explicit type on the function
|
||||
http://youtrack.jetbrains.net/issue/KT-849
|
||||
*/
|
||||
val lengths = data.map<String,Int>{s => s.length}
|
||||
val lengths = data.map<String,Int>{s -> s.length}
|
||||
assert {
|
||||
lengths.all{it == 3}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user