blob: 564969ac78b22b2af3ec15af9a7fb261526acd8a [file] [log] [blame]
Vsevolod Tolstopyatov96191342018-04-20 18:13:33 +03001package kotlinx.coroutines.experimental.internal
2
3import kotlin.test.*
4
5class ArrayCopyTest {
6
7 @Test
8 fun testArrayCopy() {
9 val source = Array(10, { it })
10 val destination = arrayOfNulls<Int>(7)
11 arraycopy(source, 2, destination, 1, 5)
12 assertEquals(listOf(null, 2, 3, 4, 5, 6, null), destination.toList())
13 }
14}