c7435ba760
We are going to deprecate `WITH_RUNTIME` directive. The main reason behind this change is that `WITH_STDLIB` directive better describes its meaning, specifically it will add kotlin stdlib to test's classpath.
23 lines
491 B
Kotlin
Vendored
23 lines
491 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// WITH_STDLIB
|
|
|
|
import kotlin.test.assertEquals
|
|
|
|
fun check(name: String, c: Class<*>) {
|
|
assertEquals(name, c.simpleName)
|
|
}
|
|
|
|
fun box(): String {
|
|
check("boolean", Boolean::class.java)
|
|
check("byte", Byte::class.java)
|
|
check("char", Char::class.java)
|
|
check("short", Short::class.java)
|
|
check("int", Int::class.java)
|
|
check("float", Float::class.java)
|
|
check("long", Long::class.java)
|
|
check("double", Double::class.java)
|
|
|
|
return "OK"
|
|
}
|