BC native tests port to Konan's TestRunner
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
package codegen.function.sum_foo_bar
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
fun foo(a:Int):Int = a
|
||||
fun bar(a:Int):Int = a
|
||||
|
||||
fun sumFooBar(a:Int, b:Int):Int = foo(a) + bar(b)
|
||||
|
||||
fun main(args:Array<String>) {
|
||||
@Test fun runTest() {
|
||||
if (sumFooBar(2, 3) != 5) throw Error()
|
||||
}
|
||||
Reference in New Issue
Block a user