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.
14 lines
447 B
Kotlin
14 lines
447 B
Kotlin
import kotlin.test.*
|
|
import kotlin.comparisons.*
|
|
|
|
fun box() {
|
|
expect(null, { listOf<Int>().min() })
|
|
expect(1, { listOf(1).min() })
|
|
expect(2, { listOf(2, 3).min() })
|
|
expect(2000000000000, { listOf(3000000000000, 2000000000000).min() })
|
|
expect('a', { listOf('a', 'b').min() })
|
|
expect("a", { listOf("a", "b").min() })
|
|
expect(null, { listOf<Int>().asSequence().min() })
|
|
expect(2, { listOf(2, 3).asSequence().min() })
|
|
}
|