yuya_horita
02/05/2019, 8:34 AMisFrozen
?jonnyzzz
02/05/2019, 8:35 AMassertTrue(hoge.isFrozen)
may work?yuya_horita
02/05/2019, 8:36 AM@Test
are available in native module.yuya_horita
02/05/2019, 8:37 AMisFrozen
is available only in it.yuya_horita
02/05/2019, 8:38 AMorg.junit.Test
are prepared so I can test jvm actual code.jonnyzzz
02/05/2019, 9:02 AMkotlin.test
as the library for tests. For JVM you may need to include kotlin.test-junit
or kotlin.test-junit5
. The native part for kotlin.test
is embedded into the K/N standard libraryjonnyzzz
02/05/2019, 9:03 AMkotlin {
sourceSets {
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
}
}
yuya_horita
02/05/2019, 9:03 AMyuya_horita
02/05/2019, 9:06 AM@Test
fun frozenTest() {
assertTrue(hoge.isFrozen)
}
Can you run this test?jonnyzzz
02/05/2019, 9:06 AMjonnyzzz
02/05/2019, 9:07 AMhoge
with Any()
jonnyzzz
02/05/2019, 9:07 AMimport kotlin.native.concurrent.isFrozen
import kotlin.test.Test
import kotlin.test.assertTrue
yuya_horita
02/05/2019, 9:08 AMyuya_horita
02/05/2019, 9:19 AMyuya_horita
02/05/2019, 9:19 AMyuya_horita
02/05/2019, 9:20 AMimport
manually, then I could 🙏jonnyzzz
02/05/2019, 9:22 AMGradle
tool window (CMD-Tab -> find it on the left part) and click refresh button in the tool windowyuya_horita
02/05/2019, 9:30 AMyuya_horita
02/05/2019, 9:30 AMyuya_horita
02/05/2019, 9:30 AMyuya_horita
02/05/2019, 9:31 AM