85827b4880
This patch copies Kotlin/JVM stdlib tests (libraries/stdlib/test) excepting ones with explicit java dependencies. It also transforms the tests to use them as box-tests.
15 lines
335 B
Kotlin
15 lines
335 B
Kotlin
import kotlin.test.assertEquals
|
|
import kotlin.test.assertFalse
|
|
import kotlin.test.assertTrue
|
|
import kotlin.test.*
|
|
|
|
|
|
fun box() {
|
|
val original = mutableListOf("a", "b", "c")
|
|
val reversed = original.asReversed()
|
|
|
|
reversed.remove("c")
|
|
assertEquals(listOf("a", "b"), original)
|
|
assertEquals(listOf("b", "a"), reversed)
|
|
}
|