Remove codegen tests with Java, move testData to boxWithJava/

There'll be a single generated test class like
BlackBoxCodegenTestGenerated
This commit is contained in:
Alexander Udalov
2013-01-27 20:26:18 +04:00
committed by Alexander Udalov
parent 10c5949199
commit 86938f57b1
20 changed files with 9 additions and 41 deletions
@@ -0,0 +1,5 @@
class R {
public static class id {
public static final int main = 17;
}
}
@@ -0,0 +1,2 @@
fun box() =
if (R.id.main == 17) "OK" else "fail"
@@ -0,0 +1,7 @@
class R {
public static class id {
public static class zzz {
public static final int main = 17;
}
}
}
@@ -0,0 +1,2 @@
fun box() =
if (R.id.zzz.main == 17) "OK" else "fail"
@@ -0,0 +1,5 @@
public class removeInIterator {
public static void bar(java.util.Iterator<Integer> it) {
it.remove();
}
}
@@ -0,0 +1,13 @@
fun box() : String {
try {
removeInIterator.bar(object : Iterator<Int> {
public override fun hasNext(): Boolean = false
public override fun next(): Int = 1
})
}
catch (e: UnsupportedOperationException) {
if (e.getMessage() == "Mutating method called on a Kotlin Iterator")
return "OK"
}
return "fail"
}