[K/N] Migrate runtime/collections tests to new testing infra ^KT-61259
This commit is contained in:
committed by
Space Team
parent
10a6d8fd2c
commit
b3e13fb2c2
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user