Fix UArray.containsAll(Collection<Any?>)

This commit is contained in:
Abduqodiri Qurbonzoda
2019-02-20 04:10:02 +03:00
committed by Ilya Gorbunov
parent 60e83383ad
commit c1b523ddef
6 changed files with 29 additions and 5 deletions
@@ -6,10 +6,19 @@
@file:Suppress("SIGNED_CONSTANT_CONVERTED_TO_UNSIGNED")
package test.collections
import test.collections.behaviors.collectionBehavior
import kotlin.test.*
class UnsignedArraysTest {
@Test
fun collectionBehavior() {
compare(listOf<UByte>(), ubyteArrayOf()) { this.collectionBehavior() }
compare(listOf<UShort>(1), ushortArrayOf(1)) { this.collectionBehavior() }
compare(listOf<UInt>(1, 2), uintArrayOf(1u, 2u)) { this.collectionBehavior() }
compare(listOf<ULong>(1, 2, 3), ulongArrayOf(1u, 2u, 3u)) { this.collectionBehavior() }
}
@Test
fun ubyteArrayInit() {
val zeroArray = UByteArray(42)