[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,23 @@
/*
* 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.collection
import kotlin.test.*
// Native-specific part of stdlib/test/collections/MutableCollectionsTest.kt
class MutableCollectionsNativeTest {
@Test fun sortListString() {
val x = mutableListOf("x", "a", "b")
x.sort()
assertContentEquals(listOf("a", "b", "x"), x)
}
@Test fun sortListInt() {
val x = mutableListOf(239, 42, -1, 100500, 0)
x.sort()
assertContentEquals(listOf(-1, 0, 42, 239, 100500), x)
}
}