[K/N] Migrate runtime/collections tests to new testing infra ^KT-61259

This commit is contained in:
Alexander Shabalin
2023-09-04 11:54:24 +02:00
committed by Space Team
parent 10a6d8fd2c
commit b3e13fb2c2
56 changed files with 2375 additions and 3050 deletions
@@ -0,0 +1,22 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package test.collections
import kotlin.random.Random
import kotlin.test.*
// Native-specific part of stdlib/test/collections/ListSpecificTest.kt
class ListSpecificNativeTest {
@Test fun factory() {
val nonConstStr = Random.nextInt().toString()
val list = listOf(nonConstStr, "b", "c")
assertEquals(3, list.size)
assertEquals(nonConstStr, list[0])
assertEquals("b", list[1])
assertEquals("c", list[2])
}
}