[JS IR BE] Unmute tests

This commit is contained in:
Svyatoslav Kuzmich
2018-10-11 15:16:39 +03:00
parent 5a057f8ca6
commit 4c38d55f21
26 changed files with 3 additions and 25 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
inline fun ltx(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
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
inline fun ltx(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 {
val a: Any = 1
val b: Any = 42
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun IntArray.swap(i:Int, j:Int) {
val temp = this[i]
this[i] = this[j]
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun idiv(a: Int, b: Int): Int =
if (b == 0) throw Exception("Division by zero") else a / b
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// WITH_COROUTINES
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun <T: Number?> foo(t: T) {
(t ?: 42).toInt()
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
val minus: Any = -0.0
fun box(): String {
@@ -1,5 +1,4 @@
// !LANGUAGE: +ProperIeee754Comparisons
// IGNORE_BACKEND: JS_IR
val minus: Any = -0.0
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
if ((-0.0 as Comparable<Double>) >= 0.0) return "fail 0"
if ((-0.0F as Comparable<Float>) >= 0.0F) return "fail 1"
@@ -1,6 +1,5 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
inline class UInt(private val value: Int) : Comparable<UInt> {
companion object {
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun test(i: Int): Int {
return i
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun test(i: Int): Int {
return i
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A() {
var x = 0
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val x: Number = 75
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun test( n : Number ) = n.toInt().toLong() + n.toLong()
fun box() : String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
//WITH_RUNTIME
fun valueFromDB(value: Any): Any {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
(0.toLong() as Number?)?.toByte()
(0 as Int?)?.toDouble()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// WITH_RUNTIME
val DOUBLE_RANGE = 0.0 .. -0.0
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS_IR, JVM_IR
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: NATIVE
open class Map1 : HashMap<String, Any?>()
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: JS_IR, JVM_IR
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
// FULL_JDK
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
//WITH_RUNTIME