mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
#KT-14650 Fixed Note that after this change behaviour of '%' on BigInteger is changed, now it works like a proper remainder
11 lines
271 B
Kotlin
Vendored
11 lines
271 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// LANGUAGE_VERSION: 1.0
|
|
// FULL_JDK
|
|
|
|
import java.math.BigInteger
|
|
|
|
fun box(): String {
|
|
val m = BigInteger.valueOf(-2) % BigInteger.valueOf(3)
|
|
return if (m != BigInteger.valueOf(1)) "Fail: BigInteger(-2) mod BigInteger(3) == $m" else "OK"
|
|
} |