Codegen tests: move stdlib tests to boxWithStdlib

This commit is contained in:
Alexander Udalov
2013-02-07 20:43:13 +04:00
committed by Alexander Udalov
parent 83b93071d3
commit 8a605b3884
24 changed files with 10 additions and 103 deletions
@@ -24,4 +24,4 @@ class Item{
fun box() : String {
C().foo()
return "OK"
}
}
@@ -1,4 +1,4 @@
fun box() : String {
val i = 1
return if(i.javaClass.getSimpleName() == "int") "OK" else "fail"
}
}
@@ -15,4 +15,4 @@ fun box() : String {
k+=x
}
return if(k=="01234") "OK" else k
}
}
@@ -10,4 +10,4 @@ public class Test {
fun box() : String {
Test().f()
return "OK"
}
}
@@ -11,4 +11,4 @@ fun box() : String {
sum += e
}
return if(sum == 6) "OK" else "fail"
}
}
@@ -17,4 +17,4 @@ fun box(): String {
if (d.javaClass != javaClass<Double>()) return "javaClass function on double fails"
return "OK"
}
}
@@ -123,4 +123,4 @@ fun Reader.forEachChar(body : (Char) -> Unit) {
if (i == -1) break
body(i.toChar())
} while(true)
}
}
@@ -104,4 +104,4 @@ fun Reader.forEachChar(body : (Char) -> Unit) {
if (i == -1) break
body(i.toChar())
} while(true)
}
}
@@ -8,4 +8,4 @@ fun box(): String {
if(test.getCanonicalName() != "java.lang.String") return "fail"
if(test2.getCanonicalName() != "java.util.Iterator") return "fail"
return "OK"
}
}
@@ -9,4 +9,4 @@ fun box() : String {
a.add(1)
a.add(2)
return if((a.size == 2) && (a.get(1) == 2) && (a.get(0) == 1)) "OK" else "fail"
}
}
@@ -63,42 +63,6 @@ public class StdlibTest extends CodegenTestCase {
}
}
public void testKt533 () {
blackBoxFile("regressions/kt533.kt");
}
public void testKt529 () {
blackBoxFile("regressions/kt529.kt");
}
public void testKt528 () {
blackBoxFile("regressions/kt528.kt");
}
public void testKt789 () {
blackBoxFile("regressions/kt789.kt");
}
public void testKt715 () {
blackBoxFile("regressions/kt715.kt");
}
public void testKt864 () {
blackBoxFile("regressions/kt864.kt");
}
public void testKt274 () {
blackBoxFile("regressions/kt274.kt");
}
public void testKt344 () {
blackBoxFile("regressions/kt344.kt");
}
//from ExtensionFunctionsTest
public void testGeneric() throws Exception {
blackBoxFile("extensionFunctions/generic.kt");
}
//from NamespaceGenTest
// public void testPredicateOperator() throws Exception {
@@ -130,14 +94,6 @@ public class StdlibTest extends CodegenTestCase {
}
}
public void testKt1406() throws Exception {
blackBoxFile("regressions/kt1406.kt");
}
public void testKt1568() throws Exception {
blackBoxFile("regressions/kt1568.kt");
}
public void testKt1592 () throws MalformedURLException, ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
loadFile("regressions/kt1592.kt");
String fqName = NamespaceCodegen.getJVMClassNameForKotlinNs(JetPsiUtil.getFQName(myFiles.getPsiFile())).getFqName().getFqName();
@@ -303,56 +259,7 @@ public class StdlibTest extends CodegenTestCase {
assertEquals(invoke1[1].value(), RetentionPolicy.SOURCE);
}
public void testInvokeAnnotationMethod() {
blackBoxFile("regressions/kt1932.kt");
}
public void testKt1800() {
blackBoxFile("regressions/kt1800.kt");
}
public void testKt2334() {
blackBoxFile("regressions/kt2334.kt");
}
public void test1733() {
blackBoxFile("regressions/kt1733.kt");
}
public void test1779() {
blackBoxFile("regressions/kt1779.kt");
}
public void testKt2210() throws Exception {
blackBoxFile("regressions/kt2210.kt");
}
public void testKt2593() {
blackBoxFile("regressions/kt2593.kt");
}
public void testKt2318() {
blackBoxFile("regressions/kt2318.kt");
}
public void testKt3046() {
blackBoxFile("regressions/kt3046.kt");
}
public void testKt2246() {
blackBoxFile("regressions/kt2246.kt");
}
public void testCollections() {
blackBoxFile("jdk-annotations/collections.kt");
}
public void testKt1515() {
blackBoxMultiFile("/multi/kt1515/thisPackage.kt", "/multi/kt1515/otherPackage.kt");
}
public void testTypeCastException() {
blackBoxFile("typeCastException.kt");
}
}