BC native tests port to Konan's TestRunner

This commit is contained in:
Pavel Punegov
2017-10-11 15:09:33 +03:00
parent 9b07fd61ce
commit 9d077d7f4f
352 changed files with 1798 additions and 384 deletions
@@ -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())
}