a5e4e0284e
This patch mutes the following test categories:
* Tests with java dependencies (System class,
java stdlib, jvm-oriented annotations etc).
* Coroutines tests.
* Reflection tests.
* Tests with an inheritance from the standard
collections.
19 lines
646 B
Kotlin
Vendored
19 lines
646 B
Kotlin
Vendored
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_RUNTIME
|
|
|
|
inline fun <reified T : Any> jClass() = T::class.java
|
|
inline fun <reified T : Any> jClassArray() = jClass<Array<T>>()
|
|
|
|
fun box(): String {
|
|
if (jClass<Array<String>>().simpleName != "String[]") return "fail 1"
|
|
if (jClass<IntArray>().simpleName != "int[]") return "fail 2"
|
|
|
|
if (jClassArray<String>().simpleName != "String[]") return "fail 3"
|
|
if (jClassArray<Array<String>>().simpleName != "String[][]") return "fail 4"
|
|
if (jClassArray<IntArray>().simpleName != "int[][]") return "fail 5"
|
|
|
|
return "OK"
|
|
}
|