[K/N][Tests] Adjust moved codegen tests to new infra

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-12 17:06:31 +01:00
committed by Space Team
parent a5f3d5b737
commit e15068c62f
301 changed files with 2958 additions and 2382 deletions
+22 -5
View File
@@ -3,16 +3,16 @@
* that can be found in the LICENSE file.
*/
package codegen.boxing.boxing13
import kotlin.test.*
val sb = StringBuilder()
fun is42(x: Any?) {
println(x == 42)
println(42 == x)
sb.appendLine(x == 42)
sb.appendLine(42 == x)
}
@Test fun runTest() {
fun box(): String {
is42(16)
is42(42)
is42("42")
@@ -22,4 +22,21 @@ fun is42(x: Any?) {
is42(nonConst16)
is42(nonConst42)
is42(nonConst42String)
assertEquals("""
false
false
true
true
false
false
false
false
true
true
false
false
""".trimIndent(), sb.toString())
return "OK"
}