Update tests

This commit is contained in:
Roman Artemev
2018-10-18 15:51:28 +03:00
committed by romanart
parent 41ccea6807
commit 1338d6d66f
11 changed files with 1 additions and 14 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun foo(): String = "foo1"
fun foo(i: Int): String = "foo2"
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
inline fun (() -> String).test(): (() -> String) = { invoke() + this.invoke() + this() }
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
package test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
// WITH_RUNTIME
package test
@@ -19,8 +18,6 @@ public inline fun <T : MCloseable, R> T.muse(block: (T) -> R): R {
import test.*
import kotlin.test.assertEquals
import kotlin.test.assertTrue
import kotlin.test.fail
class MyException(message: String) : Exception(message)
@@ -76,7 +73,7 @@ inline fun assertError(index: Int, expected: String, l: Test.()->Unit) {
val testLocal = Test()
try {
testLocal.l()
fail("fail $index: no error")
throw AssertionError("fail $index: no error")
} catch (e: Exception) {
assertEquals(expected, testLocal.status.value, "failed on $index")
}