KT-1973 added tests.

#KT-1973 Fixed
This commit is contained in:
Evgeny Gerashchenko
2012-10-03 23:08:50 +04:00
parent f33669bc83
commit 22e62c5723
6 changed files with 51 additions and 0 deletions
@@ -0,0 +1,6 @@
package test
public object Obj {
public val v: String = "val"
public fun f(): String = "fun"
}
@@ -0,0 +1,8 @@
namespace test
public final object test.Obj : jet.Any {
private final /*constructor*/ fun <init>(): test.Obj
public final fun f(): jet.String
public final val v: jet.String
}
public final val Obj: test.Obj
@@ -0,0 +1,8 @@
package test
public object Obj {
public val v: String = "val"
public fun f(): String = "fun"
}
val x = 5
@@ -0,0 +1,9 @@
namespace test
public final object test.Obj : jet.Any {
private final /*constructor*/ fun <init>(): test.Obj
public final fun f(): jet.String
public final val v: jet.String
}
public final val Obj: test.Obj
internal final val x: jet.Int
@@ -135,6 +135,16 @@ public class LoadCompiledKotlinTestGenerated extends AbstractLoadCompiledKotlinT
doTest("compiler/testData/loadKotlin/class/InnerClassExtendInnerClass.kt");
}
@TestMetadata("NamedObject.kt")
public void testNamedObject() throws Exception {
doTest("compiler/testData/loadKotlin/class/NamedObject.kt");
}
@TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt")
public void testNamedObjectWithAnotherTopLevelProperty() throws Exception {
doTest("compiler/testData/loadKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt");
}
@TestMetadata("Trait.kt")
public void testTrait() throws Exception {
doTest("compiler/testData/loadKotlin/class/Trait.kt");
@@ -137,6 +137,16 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
doTestSinglePackage("compiler/testData/loadKotlin/class/InnerClassExtendInnerClass.kt");
}
@TestMetadata("NamedObject.kt")
public void testNamedObject() throws Exception {
doTestSinglePackage("compiler/testData/loadKotlin/class/NamedObject.kt");
}
@TestMetadata("NamedObjectWithAnotherTopLevelProperty.kt")
public void testNamedObjectWithAnotherTopLevelProperty() throws Exception {
doTestSinglePackage("compiler/testData/loadKotlin/class/NamedObjectWithAnotherTopLevelProperty.kt");
}
@TestMetadata("Trait.kt")
public void testTrait() throws Exception {
doTestSinglePackage("compiler/testData/loadKotlin/class/Trait.kt");