mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
17 lines
457 B
Kotlin
17 lines
457 B
Kotlin
import junit.framework.TestCase
|
|
|
|
class KtNullabilityTest : TestCase() {
|
|
fun testKotlinNullability(): Unit = KtNullability().run {
|
|
testNullCheckOperator1("1")
|
|
testNullCheckOperator2(null)
|
|
testPrimitiveNullCheckOperator(1)
|
|
testNullCheckSequence1(null, "1")
|
|
testNullCheckSequence2(null, null)
|
|
|
|
testSafeCall1("1")
|
|
testSafeCall2(null)
|
|
testPrimitiveSafeCall1(1)
|
|
testSafeCallSequence1("1")
|
|
testSafeCallSequence2("1")
|
|
}
|
|
} |