Migrate boxAgainstJava tests to multi-file framework

This commit is contained in:
Alexander Udalov
2016-03-01 16:28:53 +03:00
parent 26de87d792
commit 280ad195ee
251 changed files with 2010 additions and 1399 deletions
@@ -1,3 +1,15 @@
// FILE: JavaClass.java
import java.util.*;
class JavaClass {
public static void sortIntList(List<Integer> list, Comparator<Integer> comparator) {
Collections.sort(list, comparator);
}
}
// FILE: 1.kt
import java.util.*
fun box(): String {
@@ -7,4 +19,4 @@ fun box(): String {
val f = { a: Int, b: Int -> b - a }
JavaClass.sortIntList(list, f)
return if (list == expected) "OK" else list.toString()
}
}