backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// WITH_RUNTIME
|
||||
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
inline fun<reified T : Any> javaClassName(): String {
|
||||
return T::class.java.getName()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
assertEquals("java.lang.String", javaClassName<String>())
|
||||
assertEquals("java.lang.Integer", javaClassName<Int>())
|
||||
assertEquals("java.lang.Object", javaClassName<Any>())
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user