Rename copyToArray() to toTypedArray().

This commit is contained in:
Ilya Gorbunov
2015-04-20 20:17:49 +03:00
parent 5eb3c0bb5e
commit be11394adf
9 changed files with 17 additions and 11 deletions
@@ -91,7 +91,7 @@ class CollectionJVMTest {
test fun toArray() {
val data = listOf("foo", "bar")
val arr = data.copyToArray()
val arr = data.toTypedArray()
println("Got array ${arr}")
assertEquals(2, arr.size())
todo {
@@ -286,7 +286,7 @@ class CollectionTest {
test fun copyToArray() {
val data = listOf("foo", "bar")
val arr = data.copyToArray()
val arr = data.toTypedArray()
println("Got array ${arr}")
assertEquals(2, arr.size())
todo {
@@ -31,7 +31,7 @@ class JavautilCollectionsTest {
}
test fun collectionToArray() {
val array = TEST_LIST.copyToArray()
val array = TEST_LIST.toTypedArray()
assertEquals(array.toList(), TEST_LIST)
}
}