[JS IR BE] Remove unnecesary println from tests

This commit is contained in:
Svyatoslav Kuzmich
2019-03-01 01:52:37 +03:00
parent d203e062bb
commit 0f07209490
3 changed files with 4 additions and 8 deletions
@@ -1,9 +1,8 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME
// EXPECTED_REACHABLE_NODES: 1323
fun <T> checkThrown(x: T, block: (T) -> Any?): Unit? {
return try {
println((block(x) ?: "").toString())
block(x)
null
}
catch (e: NoWhenBranchMatchedException) {
@@ -13,7 +12,7 @@ fun <T> checkThrown(x: T, block: (T) -> Any?): Unit? {
fun <T> checkNotThrown(x: T, block: (T) -> Any?): Unit? {
return try {
println((block(x) ?: "").toString())
block(x)
Unit
}
catch (e: NoWhenBranchMatchedException) {
+2 -2
View File
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JS_IR
// KJS_WITH_FULL_RUNTIME
// EXPECTED_REACHABLE_NODES: 1230
// GENERATE_SOURCE_MAPS
// FILE: Enum.kt
@@ -13,7 +12,8 @@ enum class Enum {
// RECOMPILE
fun box(): String {
println(Enum.A)
if (Enum.A.name != "A")
return "Fail"
return "OK"
}
@@ -1,5 +1,4 @@
// EXPECTED_REACHABLE_NODES: 1282
// IGNORE_BACKEND: JS_IR
interface I {
fun ok(): String
@@ -17,8 +16,6 @@ inline fun convolutedOk(): I {
override fun ok() = "fail"
}.ok()
println(fail)
return ok()
}