JS IR: mute codegen box tests automatically

This commit is contained in:
Anton Bannykh
2018-06-07 14:17:45 +03:00
parent 7e1713af44
commit 96355e2732
2384 changed files with 2384 additions and 0 deletions
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Array<Int>, val y: IntArray)
fun foo(x: Array<Int>, y: IntArray) = A(x, y)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(var string: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Int = 1, val b: String = "$a") {}
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// LANGUAGE_VERSION: 1.1
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Double, val b: Double)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Int, val b: String) {}
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(var a: Int, var b: String) {}
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Foo<String>) {}
class Foo<T>(val a: T) { }
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val o: String, val k: String) {
constructor() : this("O", "k")
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val v: Array<Int>)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val v: IntArray)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val v: Any?)
data class B<T>(val v: T)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
class Dummy {
override fun equals(other: Any?) = true
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val arg: Any? = null)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
interface A
data class B<out T : A>(val a: T)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A<T>(val x: T)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Int) {
override fun hashCode(): Int = -3
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Boolean)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Byte)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Char)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Double)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Float)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A<T>(val t: T)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Int)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Long)
fun box() : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Any?, var x: Int)
data class B(val a: Any?)
data class C(val a: Int, var x: Int?)
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val a: Short)
fun box() : String {
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(var x: Int, val z: Int)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Int, val y: Any?, val z: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Int, val y: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// See KT-6206 Always generate hashCode() and equals() for data classes even if base classes have non-trivial analogs
abstract class Base {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class D(private val x: Long, private val y: Char) {
fun foo() = "${component1()}${component2()}"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Int) {
override fun toString(): String = "!"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(var string: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A<T>(val x: T)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(var x: Int, val z: Int?)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Unit)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Int, val y: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(var x: Int, var y: String)
fun box(): String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS_IR
data class A(val x: Unit)
fun box(): String {