|
|
@ -5,6 +5,7 @@ import com.example.common.composeText |
|
|
|
import kotlinx.coroutines.Job |
|
|
|
import kotlinx.coroutines.Job |
|
|
|
import kotlinx.coroutines.test.runTest |
|
|
|
import kotlinx.coroutines.test.runTest |
|
|
|
import kotlin.test.BeforeTest |
|
|
|
import kotlin.test.BeforeTest |
|
|
|
|
|
|
|
import kotlin.test.Ignore |
|
|
|
import kotlin.test.Test |
|
|
|
import kotlin.test.Test |
|
|
|
import kotlin.test.assertEquals |
|
|
|
import kotlin.test.assertEquals |
|
|
|
|
|
|
|
|
|
|
@ -14,6 +15,7 @@ class Tests { |
|
|
|
* Here we use an unstable parameter, and therefore |
|
|
|
* Here we use an unstable parameter, and therefore |
|
|
|
* we expect the Composable function will NOT skip body execution. |
|
|
|
* we expect the Composable function will NOT skip body execution. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
@Ignore |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
fun testUnstableParameter() = runTest { |
|
|
|
fun testUnstableParameter() = runTest { |
|
|
|
val i = UnstableDataClassWithPrivateVar(0) |
|
|
|
val i = UnstableDataClassWithPrivateVar(0) |
|
|
@ -34,6 +36,7 @@ class Tests { |
|
|
|
assertEquals(2, i.getI()) |
|
|
|
assertEquals(2, i.getI()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Ignore |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
fun testUnstableParameterOfLocalType() = runTest { |
|
|
|
fun testUnstableParameterOfLocalType() = runTest { |
|
|
|
val i = LocalUnstableDataClassWithPrivateVar(0) |
|
|
|
val i = LocalUnstableDataClassWithPrivateVar(0) |
|
|
|