[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
@@ -2,6 +2,14 @@ fun test1d(x: Double, y: Double): Int {
return x.compareTo(other = y)
}
fun test1f(x: Float, y: Float): Int {
return x.compareTo(other = y)
}
fun Float.test1fr(x: Float): Int {
return <this>.compareTo(other = x)
}
fun test2d(x: Double, y: Any): Boolean {
return when {
y is Double -> EQEQ(arg0 = x.compareTo(other = y /*as Double */), arg1 = 0)
@@ -9,6 +17,20 @@ fun test2d(x: Double, y: Any): Boolean {
}
}
fun test2f(x: Float, y: Any): Boolean {
return when {
y is Float -> EQEQ(arg0 = x.compareTo(other = y /*as Float */), arg1 = 0)
else -> false
}
}
fun Float.test2fr(x: Any): Boolean {
return when {
x is Float -> EQEQ(arg0 = <this>.compareTo(other = x /*as Float */), arg1 = 0)
else -> false
}
}
fun test3d(x: Any, y: Any): Boolean {
return when {
when {
@@ -19,17 +41,6 @@ fun test3d(x: Any, y: Any): Boolean {
}
}
fun test1f(x: Float, y: Float): Int {
return x.compareTo(other = y)
}
fun test2f(x: Float, y: Any): Boolean {
return when {
y is Float -> EQEQ(arg0 = x.compareTo(other = y /*as Float */), arg1 = 0)
else -> false
}
}
fun test3f(x: Any, y: Any): Boolean {
return when {
when {
@@ -40,12 +51,9 @@ fun test3f(x: Any, y: Any): Boolean {
}
}
fun testFD(x: Any, y: Any): Boolean {
fun Float.test3fr(x: Any): Boolean {
return when {
when {
x is Float -> y is Double
else -> false
} -> EQEQ(arg0 = x /*as Float */.compareTo(other = y /*as Double */), arg1 = 0)
x is Double -> EQEQ(arg0 = <this>.compareTo(other = x /*as Double */), arg1 = 0)
else -> false
}
}
@@ -60,20 +68,13 @@ fun testDF(x: Any, y: Any): Boolean {
}
}
fun Float.test1fr(x: Float): Int {
return <this>.compareTo(other = x)
}
fun Float.test2fr(x: Any): Boolean {
fun testFD(x: Any, y: Any): Boolean {
return when {
x is Float -> EQEQ(arg0 = <this>.compareTo(other = x /*as Float */), arg1 = 0)
when {
x is Float -> y is Double
else -> false
} -> EQEQ(arg0 = x /*as Float */.compareTo(other = y /*as Double */), arg1 = 0)
else -> false
}
}
fun Float.test3fr(x: Any): Boolean {
return when {
x is Double -> EQEQ(arg0 = <this>.compareTo(other = x /*as Double */), arg1 = 0)
else -> false
}
}