Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
+13
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user