[JS IR BE] Unmute tests
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
inline fun ltx(a: Comparable<Any>, b: Any) = a < b
|
inline fun ltx(a: Comparable<Any>, b: Any) = a < b
|
||||||
inline fun lex(a: Comparable<Any>, b: Any) = a <= b
|
inline fun lex(a: Comparable<Any>, b: Any) = a <= b
|
||||||
inline fun gex(a: Comparable<Any>, b: Any) = a >= b
|
inline fun gex(a: Comparable<Any>, b: Any) = a >= b
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
inline fun ltx(a: Comparable<Any>, b: Any) = a < b
|
inline fun ltx(a: Comparable<Any>, b: Any) = a < b
|
||||||
inline fun lex(a: Comparable<Any>, b: Any) = a <= b
|
inline fun lex(a: Comparable<Any>, b: Any) = a <= b
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val a: Any = 1
|
val a: Any = 1
|
||||||
val b: Any = 42
|
val b: Any = 42
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun IntArray.swap(i:Int, j:Int) {
|
fun IntArray.swap(i:Int, j:Int) {
|
||||||
val temp = this[i]
|
val temp = this[i]
|
||||||
this[i] = this[j]
|
this[i] = this[j]
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun idiv(a: Int, b: Int): Int =
|
fun idiv(a: Int, b: Int): Int =
|
||||||
if (b == 0) throw Exception("Division by zero") else a / b
|
if (b == 0) throw Exception("Division by zero") else a / b
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// WITH_COROUTINES
|
// WITH_COROUTINES
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun <T: Number?> foo(t: T) {
|
fun <T: Number?> foo(t: T) {
|
||||||
(t ?: 42).toInt()
|
(t ?: 42).toInt()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
val minus: Any = -0.0
|
val minus: Any = -0.0
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
-1
@@ -1,5 +1,4 @@
|
|||||||
// !LANGUAGE: +ProperIeee754Comparisons
|
// !LANGUAGE: +ProperIeee754Comparisons
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
val minus: Any = -0.0
|
val minus: Any = -0.0
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
if ((-0.0 as Comparable<Double>) >= 0.0) return "fail 0"
|
if ((-0.0 as Comparable<Double>) >= 0.0) return "fail 0"
|
||||||
if ((-0.0F as Comparable<Float>) >= 0.0F) return "fail 1"
|
if ((-0.0F as Comparable<Float>) >= 0.0F) return "fail 1"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
// IGNORE_BACKEND: JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
inline class UInt(private val value: Int) : Comparable<UInt> {
|
inline class UInt(private val value: Int) : Comparable<UInt> {
|
||||||
companion object {
|
companion object {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun test(i: Int): Int {
|
fun test(i: Int): Int {
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun test(i: Int): Int {
|
fun test(i: Int): Int {
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
class A() {
|
class A() {
|
||||||
var x = 0
|
var x = 0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val x: Number = 75
|
val x: Number = 75
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun test( n : Number ) = n.toInt().toLong() + n.toLong()
|
fun test( n : Number ) = n.toInt().toLong() + n.toLong()
|
||||||
|
|
||||||
fun box() : String {
|
fun box() : String {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
//WITH_RUNTIME
|
//WITH_RUNTIME
|
||||||
|
|
||||||
fun valueFromDB(value: Any): Any {
|
fun valueFromDB(value: Any): Any {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
(0.toLong() as Number?)?.toByte()
|
(0.toLong() as Number?)?.toByte()
|
||||||
(0 as Int?)?.toDouble()
|
(0 as Int?)?.toDouble()
|
||||||
|
|||||||
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
val DOUBLE_RANGE = 0.0 .. -0.0
|
val DOUBLE_RANGE = 0.0 .. -0.0
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JS_IR, JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// IGNORE_BACKEND: NATIVE
|
// IGNORE_BACKEND: NATIVE
|
||||||
|
|
||||||
open class Map1 : HashMap<String, Any?>()
|
open class Map1 : HashMap<String, Any?>()
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
// IGNORE_BACKEND: JS_IR, JVM_IR
|
// IGNORE_BACKEND: JVM_IR
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
// FULL_JDK
|
// FULL_JDK
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// FILE: 1.kt
|
// FILE: 1.kt
|
||||||
//WITH_RUNTIME
|
//WITH_RUNTIME
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// EXPECTED_REACHABLE_NODES: 1542
|
// EXPECTED_REACHABLE_NODES: 1542
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// EXPECTED_REACHABLE_NODES: 1284
|
// EXPECTED_REACHABLE_NODES: 1284
|
||||||
|
// IGNORE_BACKEND: JS
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// EXPECTED_REACHABLE_NODES: 1284
|
// EXPECTED_REACHABLE_NODES: 1284
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JS_IR
|
|
||||||
// EXPECTED_REACHABLE_NODES: 1292
|
// EXPECTED_REACHABLE_NODES: 1292
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user