[Tests] Use stable order for ir/kotlinLike dumps

^KT-65406
This commit is contained in:
Pavel Kunyavskiy
2024-02-05 16:23:41 +01:00
committed by Space Team
parent 0fa42a9c11
commit e6f4d6e6fa
1265 changed files with 43896 additions and 48472 deletions
@@ -1,14 +1,14 @@
data class Test1<T : Any?> {
val x: T
field = x
get
constructor(x: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: T
field = x
get
operator fun component1(): T {
return <this>.#x
}
@@ -17,17 +17,6 @@ data class Test1<T : Any?> {
return Test1<T>(x = x)
}
override fun toString(): String {
return "Test1(" + "x=" + <this>.#x + ")"
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#x, arg1 = null) -> 0
else -> <this>.#x.hashCode()
}
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -42,19 +31,30 @@ data class Test1<T : Any?> {
return true
}
override fun hashCode(): Int {
return when {
EQEQ(arg0 = <this>.#x, arg1 = null) -> 0
else -> <this>.#x.hashCode()
}
}
override fun toString(): String {
return "Test1(" + "x=" + <this>.#x + ")"
}
}
data class Test2<T : Number> {
val x: T
field = x
get
constructor(x: T) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: T
field = x
get
operator fun component1(): T {
return <this>.#x
}
@@ -63,14 +63,6 @@ data class Test2<T : Number> {
return Test2<T>(x = x)
}
override fun toString(): String {
return "Test2(" + "x=" + <this>.#x + ")"
}
override fun hashCode(): Int {
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -85,19 +77,27 @@ data class Test2<T : Number> {
return true
}
override fun hashCode(): Int {
return <this>.#x.hashCode()
}
override fun toString(): String {
return "Test2(" + "x=" + <this>.#x + ")"
}
}
data class Test3<T : Any?> {
val x: List<T>
field = x
get
constructor(x: List<T>) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: List<T>
field = x
get
operator fun component1(): List<T> {
return <this>.#x
}
@@ -106,14 +106,6 @@ data class Test3<T : Any?> {
return Test3<T>(x = x)
}
override fun toString(): String {
return "Test3(" + "x=" + <this>.#x + ")"
}
override fun hashCode(): Int {
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -128,19 +120,27 @@ data class Test3<T : Any?> {
return true
}
override fun hashCode(): Int {
return <this>.#x.hashCode()
}
override fun toString(): String {
return "Test3(" + "x=" + <this>.#x + ")"
}
}
data class Test4 {
val x: List<String>
field = x
get
constructor(x: List<String>) /* primary */ {
super/*Any*/()
/* <init>() */
}
val x: List<String>
field = x
get
operator fun component1(): List<String> {
return <this>.#x
}
@@ -149,14 +149,6 @@ data class Test4 {
return Test4(x = x)
}
override fun toString(): String {
return "Test4(" + "x=" + <this>.#x + ")"
}
override fun hashCode(): Int {
return <this>.#x.hashCode()
}
override operator fun equals(other: Any?): Boolean {
when {
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
@@ -171,4 +163,13 @@ data class Test4 {
return true
}
override fun hashCode(): Int {
return <this>.#x.hashCode()
}
override fun toString(): String {
return "Test4(" + "x=" + <this>.#x + ")"
}
}