Files
kotlin-fork/compiler/testData/codegen/box/ranges/contains/inRangeWithNonmatchingArguments.kt
T
Ivan Kylchik c7435ba760 Replace all occurrences of WITH_RUNTIME with WITH_STDLIB
We are going to deprecate `WITH_RUNTIME` directive. The main reason
behind this change is that `WITH_STDLIB` directive better describes
its meaning, specifically it will add kotlin stdlib to test's classpath.
2021-11-17 15:26:38 +03:00

14 lines
380 B
Kotlin
Vendored

// WITH_STDLIB
import kotlin.test.*
fun box(): String {
assertTrue(Long.MAX_VALUE !in Int.MIN_VALUE..Int.MAX_VALUE)
assertTrue(Int.MAX_VALUE in Long.MIN_VALUE..Long.MAX_VALUE)
assertTrue(Double.MAX_VALUE !in Float.MIN_VALUE..Float.MAX_VALUE)
assertTrue(Float.MIN_VALUE in 0.0..1.0)
assertTrue(2.0 !in 1.0f..0.0f)
assertTrue(1L in 0..2)
return "OK"
}