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,7 +0,0 @@
public class Delegation {
public static class ReturnNull {
public String foo() {
return null;
}
}
}
@@ -1,5 +0,0 @@
class RightElvisOperand {
static String foo() {
return null;
}
}
@@ -1,3 +1,15 @@
// FILE: Delegation.java
public class Delegation {
public static class ReturnNull {
public String foo() {
return null;
}
}
}
// FILE: 1.kt
interface Tr {
fun foo(): String
}
@@ -18,4 +30,4 @@ fun box(): String {
println(e.message)
return "OK"
}
}
}
@@ -1,3 +1,13 @@
// FILE: RightElvisOperand.java
class RightElvisOperand {
static String foo() {
return null;
}
}
// FILE: 1.kt
fun baz(): String? = null
fun bar(): String = baz() ?: RightElvisOperand.foo()