[K/N][tests] Adjust moved tests to new testing infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
0a0da76a56
commit
e68bd1f04f
@@ -3,9 +3,13 @@
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
val sb = StringBuilder()
|
||||
|
||||
class A(val msg: String) {
|
||||
init {
|
||||
println("init $msg")
|
||||
sb.appendLine("init $msg")
|
||||
}
|
||||
override fun toString(): String = msg
|
||||
}
|
||||
@@ -14,9 +18,19 @@ val globalValue1 = 1
|
||||
val globalValue2 = A("globalValue2")
|
||||
val globalValue3 = A("globalValue3")
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
println(globalValue1.toString())
|
||||
println(globalValue2.toString())
|
||||
println(globalValue3.toString())
|
||||
fun box(): String {
|
||||
sb.appendLine(globalValue1.toString())
|
||||
sb.appendLine(globalValue2.toString())
|
||||
sb.appendLine(globalValue3.toString())
|
||||
|
||||
assertEquals("""
|
||||
init globalValue2
|
||||
init globalValue3
|
||||
1
|
||||
globalValue2
|
||||
globalValue3
|
||||
|
||||
""".trimIndent(), sb.toString())
|
||||
return "OK"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user