Deprecate contains, indexOf, lastIndexOf functions of Float/DoubleArray #KT-28753

This commit is contained in:
Abduqodiri Qurbonzoda
2020-06-08 23:36:38 +03:00
parent 97c688057d
commit c923b2e139
3 changed files with 29 additions and 4 deletions
@@ -12,7 +12,6 @@ import test.assertTypeEquals
import test.collections.behaviors.*
import test.comparisons.STRING_CASE_INSENSITIVE_ORDER
import test.text.isAsciiLetter
import kotlin.math.exp
import kotlin.test.*
import kotlin.random.Random
@@ -503,6 +502,7 @@ class ArraysTest {
// for each arr with size > 0 arr.average() = arr.sum().toDouble() / arr.size()
}
@Suppress("DEPRECATION")
@Test fun indexOfInPrimitiveArrays() {
expect(-1) { byteArrayOf(1, 2, 3).indexOf(0) }
expect(0) { byteArrayOf(1, 2, 3).indexOf(1) }