BC native tests port to Konan's TestRunner
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
package codegen.classDelegation.generic
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
open class Content() {
|
||||
override fun toString() = "OK"
|
||||
}
|
||||
@@ -16,6 +20,6 @@ class ContentBoxDelegate<T : Content>() : ContentBox<T> by (Impl as ContentBox<T
|
||||
|
||||
fun box() = ContentBoxDelegate<Content>().get().toString()
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
println(box())
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.classDelegation.method
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
interface A<T> {
|
||||
fun foo(): T
|
||||
}
|
||||
@@ -14,6 +18,6 @@ fun box(): String {
|
||||
return c.foo() + a.foo()
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
println(box())
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.classDelegation.property
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
interface A {
|
||||
val x: Int
|
||||
}
|
||||
@@ -14,6 +18,6 @@ fun box(): String {
|
||||
return q.x.toString() + a.x.toString()
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
println(box())
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.classDelegation.withBridge
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
interface A<T> {
|
||||
fun foo(t: T): String
|
||||
}
|
||||
@@ -23,6 +27,6 @@ fun box(): String {
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
println(box())
|
||||
}
|
||||
Reference in New Issue
Block a user