Added copyToArray intrinsic method.

#KT-3352 fixed
This commit is contained in:
Evgeny Gerashchenko
2013-09-30 20:09:09 +04:00
parent 41d1f277dc
commit 2ae1a2c81b
13 changed files with 110 additions and 7 deletions
@@ -29,4 +29,9 @@ class JavautilCollectionsTest {
Collections.sort(list, COMPARATOR)
assertEquals(SORTED_TEST_LIST, list)
}
test fun collectionToArray() {
val array = TEST_LIST.copyToArray()
assertEquals(array.toList(), TEST_LIST)
}
}