Migrate testdata to new lambda syntax

This commit is contained in:
Stanislav Erokhin
2015-04-03 13:40:07 +03:00
parent b703f59e04
commit 3de0dff575
134 changed files with 263 additions and 277 deletions

View File

@@ -4,7 +4,7 @@ fun box(): String {
val list = ArrayList(Arrays.asList(3, 2, 4, 8, 1, 5))
val expected = ArrayList(Arrays.asList(8, 5, 4, 3, 2, 1))
val f = { (a: Int, b: Int) -> b - a }
val f = { a: Int, b: Int -> b - a }
JavaClass.sortIntList(list, f)
return if (list == expected) "OK" else list.toString()
}