Test classes regenerated with new data

This commit is contained in:
Andrey Breslav
2012-06-25 17:47:13 +02:00
parent 6632c6abfc
commit dea6c452a0
5 changed files with 62 additions and 40 deletions
@@ -0,0 +1,7 @@
namespace <root>
internal abstract trait TheTrait : jet.Any {
internal final object TheTrait.<no name provided> : jet.Any {
internal final /*constructor*/ fun <init>(): TheTrait.<no name provided>
}
}
@@ -0,0 +1,5 @@
enum class Test(a : Int) {
A : Test(0)
B(x : Int) : Test(x)
C : Test(0) {}
}
@@ -3,24 +3,24 @@ namespace <root>
// <namespace name="p"> // <namespace name="p">
namespace p namespace p
final class p.C : jet.Any { internal final class p.C : jet.Any {
final /*constructor*/ fun <init>(): p.C internal final fun f(): jet.Tuple0
final fun f(): jet.Tuple0 public final /*constructor*/ fun <init>(): p.C
} }
open class p.G</*0*/ T : jet.Any?> : jet.Any { internal open class p.G</*0*/ T : jet.Any?> : jet.Any {
final /*constructor*/ fun </*0*/ T : jet.Any?><init>(): p.G<T> internal final fun a(): jet.Tuple0
final fun a(): jet.Tuple0 internal open fun f(): T
open fun f(): T public final /*constructor*/ fun </*0*/ T : jet.Any?><init>(): p.G<T>
} }
final class p.G2</*0*/ E : jet.Any?> : p.G<E> { internal final class p.G2</*0*/ E : jet.Any?> : p.G<E> {
final /*constructor*/ fun </*0*/ E : jet.Any?><init>(): p.G2<E> internal final fun g(): E
final override /*1*/ fun a(): jet.Tuple0 internal final override /*1*/ fun a(): jet.Tuple0
open override /*1*/ fun f(): E internal open override /*1*/ fun f(): E
final fun g(): E public final /*constructor*/ fun </*0*/ E : jet.Any?><init>(): p.G2<E>
} }
final fun foo(): jet.Tuple0 internal final fun foo(): jet.Tuple0
final fun foo(/*0*/ a: p.C): jet.Tuple0 internal final fun foo(/*0*/ a: p.C): jet.Tuple0
// </namespace name="p"> // </namespace name="p">
final class A : jet.Any { internal final class A : jet.Any {
final /*constructor*/ fun <init>(): A public final /*constructor*/ fun <init>(): A
} }
@@ -69,13 +69,13 @@ public class LazyResolveDescriptorRendererTestGenerated {
} }
@Test @Test
public void testTupleTypes() throws Exception { public void testInheritedMembersVisibility() throws Exception {
doTest("compiler/testData/renderer/TupleTypes.kt"); doTest("compiler/testData/renderer/InheritedMembersVisibility.kt");
} }
@Test @Test
public void testInheritedMembersVisibility() throws Exception { public void testTupleTypes() throws Exception {
doTest("compiler/testData/renderer/InheritedMembersVisibility.kt"); doTest("compiler/testData/renderer/TupleTypes.kt");
} }
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) { public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {
@@ -1027,14 +1027,24 @@ public class LazyResolveNamespaceComparingTestGenerated {
allTestsPresent(LazyResolve.class, new File("compiler/testData/lazyResolve"), true); allTestsPresent(LazyResolve.class, new File("compiler/testData/lazyResolve"), true);
} }
@Test
public void testClassObject() throws Exception {
doTest("compiler/testData/lazyResolve/descriptorRenderer/ClassObject.kt");
}
@Test
public void testEnum() throws Exception {
doTest("compiler/testData/lazyResolve/namespaceComparator/enum.kt");
}
@Test @Test
public void testGenericFunction() throws Exception { public void testGenericFunction() throws Exception {
doTest("compiler/testData/lazyResolve/genericFunction.kt"); doTest("compiler/testData/lazyResolve/namespaceComparator/genericFunction.kt");
} }
@Test @Test
public void testSimpleClass() throws Exception { public void testSimpleClass() throws Exception {
doTest("compiler/testData/lazyResolve/simpleClass.kt"); doTest("compiler/testData/lazyResolve/namespaceComparator/simpleClass.kt");
} }
public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) { public static void allTestsPresent(Class<?> clazz, File testDataDir, boolean recursive) {