Fix UArray.containsAll(Collection<Any?>)
This commit is contained in:
committed by
Ilya Gorbunov
parent
60e83383ad
commit
c1b523ddef
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user