[Test] Migrate AbstractBlackBoxCodegenTest to new infrastructure

This commit is contained in:
Dmitriy Novozhilov
2020-12-25 12:41:20 +03:00
committed by TeamCityServer
parent f01122d8dc
commit 85c87f7df9
47 changed files with 7856 additions and 2932 deletions
@@ -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
}