BC native tests port to Konan's TestRunner
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
fun main(args : Array<String>) {
|
||||
package runtime.exceptions.catch1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
@Test fun runTest() {
|
||||
try {
|
||||
println("Before")
|
||||
foo()
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
fun main(args : Array<String>) {
|
||||
package runtime.exceptions.catch2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
@Test fun runTest() {
|
||||
try {
|
||||
println("Before")
|
||||
foo()
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
fun main(args : Array<String>) {
|
||||
package runtime.exceptions.catch7
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
@Test fun runTest() {
|
||||
try {
|
||||
foo()
|
||||
} catch (e: Throwable) {
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package runtime.exceptions.extend0
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
class C : Exception("OK")
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
try {
|
||||
throw C()
|
||||
} catch (e: Throwable) {
|
||||
|
||||
Reference in New Issue
Block a user