a47eaa2cb5
update tests depending on part class naming
34 lines
617 B
Kotlin
Vendored
34 lines
617 B
Kotlin
Vendored
package test
|
|
|
|
public val MASSERTIONS_ENABLED: Boolean = true
|
|
|
|
public inline fun massert(value: Boolean, lazyMessage: () -> String) {
|
|
if (MASSERTIONS_ENABLED) {
|
|
if (!value) {
|
|
val message = lazyMessage()
|
|
throw AssertionError(message)
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
public inline fun massert(value: Boolean, message: Any = "Assertion failed") {
|
|
if (ASSERTIONS_ENABLED) {
|
|
if (!value) {
|
|
throw AssertionError(message)
|
|
}
|
|
}
|
|
}
|
|
|
|
//TODO SHOULD BE ABSENT
|
|
|
|
//SMAP
|
|
//assertion.2.kt
|
|
//Kotlin
|
|
//*S Kotlin
|
|
//*F
|
|
//+ 1 assertion.2.kt
|
|
//test/Assertion_2Kt
|
|
//*L
|
|
//1#1,34:1
|
|
//*E |