JS IR: unmute tests

This commit is contained in:
Anton Bannykh
2018-07-10 17:07:54 +03:00
parent 9e9b27fe79
commit ac1a97ad83
36 changed files with 0 additions and 36 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val a1: Any = 1.toByte().plus(1)
val a2: Any = 1.toShort().plus(1)
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun <T> id(x: T) = x
fun box(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val a1: Any = 1.toByte() + 1
val a2: Any = 1.toShort() + 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val c1: Char = 0.toChar()
val c2 = c1 - 1
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Char)
fun box() : String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
data class D(private val x: Long, private val y: Char) {
fun foo() = "${component1()}${component2()}"
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun Int.foo(a: Int = 1,
b: Int = 2,
c: Int = 3,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class A {
fun Int.foo(a: Int = 1,
b: Int = 2,
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
val <T> T.valProp: T
get() = this
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
var <T> T.varProp: T
get() = this
set(value: T) {}
@@ -1,6 +1,5 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
inline class Foo(val c: Char) {
companion object {
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
fun box(): String {
val d = 42.0
val c = 'C'
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val x: Any = 'A'
var y = 0
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
val zint : Int? = 1
val zlong : Long? = 2
val zbyte : Byte? = 3
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit!
val nx: Char? = '0'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit!
val nx: Char? = '0'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// Auto-generated by GeneratePrimitiveVsObjectEqualityTestData. Do not edit!
val nx: Any? = '0'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val b: Byte = 42
val c: Char = 'z'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun byteArg(b: Byte) {}
fun charArg(c: Char) {}
fun shortArg(s: Short) {}
@@ -1,5 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS_IR
class A(var b: Byte) {
fun c(d: Short) = (b + d.toByte()).toChar()
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box () : String {
val b = 4.toByte()
val s = 5.toShort()
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val a: Char? = 'a'
val result = a!! < 'b'
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
val c: Char? = 'a'
if (c!! - 'a' != 0) return "Fail c"
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
var a = 'a'