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

^KT-61259
This commit is contained in:
Vladimir Sukharev
2023-12-14 20:14:47 +01:00
committed by Space Team
parent 71a834b778
commit 73032213f0
295 changed files with 1362 additions and 1145 deletions
+12 -5
View File
@@ -3,17 +3,17 @@
* that can be found in the LICENSE file.
*/
package codegen.inline.inline9
import kotlin.test.*
val sb = StringBuilder()
@Suppress("NOTHING_TO_INLINE")
inline fun foo(i3: Int, i4: Int): Int {
return i3 + i3 + i4
}
fun quiz(i: Int) : Int {
println("hello")
sb.appendLine("hello")
return i + 1
}
@@ -21,6 +21,13 @@ fun bar(i1: Int, i2: Int): Int {
return foo(quiz(i1), i2)
}
@Test fun runTest() {
println(bar(1, 2).toString())
fun box(): String {
sb.appendLine(bar(1, 2).toString())
assertEquals("""
hello
6
""".trimIndent(), sb.toString())
return "OK"
}