[Tests] Use stable order for ir/kotlinLike dumps
^KT-65406
This commit is contained in:
committed by
Space Team
parent
0fa42a9c11
commit
e6f4d6e6fa
@@ -1,11 +1,5 @@
|
||||
@Suppress(names = ["INCOMPATIBLE_MODIFIERS"])
|
||||
open data class ValidatedProperties {
|
||||
constructor(test1: String, test2: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
open val test1: String
|
||||
field = test1
|
||||
open get
|
||||
@@ -14,6 +8,12 @@ open data class ValidatedProperties {
|
||||
field = test2
|
||||
open get
|
||||
|
||||
constructor(test1: String, test2: String) /* primary */ {
|
||||
super/*Any*/()
|
||||
/* <init>() */
|
||||
|
||||
}
|
||||
|
||||
operator fun component1(): String {
|
||||
return <this>.<get-test1>()
|
||||
}
|
||||
@@ -26,16 +26,6 @@ open data class ValidatedProperties {
|
||||
return ValidatedProperties(test1 = test1, test2 = test2)
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "ValidatedProperties(" + "test1=" + <this>.<get-test1>() + ", " + "test2=" + <this>.<get-test2>() + ")"
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
var result: Int = <this>.<get-test1>().hashCode()
|
||||
result = result.times(other = 31).plus(other = <this>.<get-test2>().hashCode())
|
||||
return result
|
||||
}
|
||||
|
||||
override operator fun equals(other: Any?): Boolean {
|
||||
when {
|
||||
EQEQEQ(arg0 = <this>, arg1 = other) -> return true
|
||||
@@ -53,4 +43,15 @@ open data class ValidatedProperties {
|
||||
return true
|
||||
}
|
||||
|
||||
override fun hashCode(): Int {
|
||||
var result: Int = <this>.<get-test1>().hashCode()
|
||||
result = result.times(other = 31).plus(other = <this>.<get-test2>().hashCode())
|
||||
return result
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "ValidatedProperties(" + "test1=" + <this>.<get-test1>() + ", " + "test2=" + <this>.<get-test2>() + ")"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user