Add more cases for ReplaceJavaStaticMethodWithTopLevelFunction from java.lang.Math
This commit is contained in:
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double, y: Double) {
|
||||
<caret>Math.copySign(x, y)
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.math.withSign
|
||||
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double, y: Double) {
|
||||
x.withSign(y)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
<caret>Math.log(x)
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.math.ln
|
||||
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
<caret>ln(x)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
<caret>Math.log1p(x)
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import kotlin.math.ln1p
|
||||
|
||||
// WITH_RUNTIME
|
||||
fun test(x: Double) {
|
||||
<caret>ln1p(x)
|
||||
}
|
||||
Reference in New Issue
Block a user