[Test] Migrate AbstractBlackBoxCodegenTest to new infrastructure
This commit is contained in:
committed by
TeamCityServer
parent
f01122d8dc
commit
85c87f7df9
@@ -29,6 +29,17 @@ object KtAssert {
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
@OptIn(ExperimentalContracts::class)
|
||||
fun assertNull(message: String, value: Any?) {
|
||||
contract {
|
||||
returns() implies (value == null)
|
||||
}
|
||||
if (value != null) {
|
||||
fail(message)
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun assertTrue(message: String, value: Boolean) {
|
||||
if (!value) {
|
||||
|
||||
@@ -19,7 +19,8 @@ enum class TargetBackend(
|
||||
JS_IR(true, JS),
|
||||
JS_IR_ES6(true, JS_IR),
|
||||
WASM(true),
|
||||
ANDROID(false, JVM);
|
||||
ANDROID(false, JVM),
|
||||
NATIVE(true);
|
||||
|
||||
val compatibleWith get() = compatibleWithTargetBackend ?: ANY
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user