Fix deprecations in testData
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@
|
||||
|
||||
fun foo() {
|
||||
kotlin.test.<caret>assertFailsWith<Exception>("", {})
|
||||
kotlin.test.assertFailsWith(RuntimeException::class.java, "", {})
|
||||
kotlin.test.assertFailsWith(RuntimeException::class, "", {})
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ import kotlin.test.assertFailsWith
|
||||
|
||||
fun foo() {
|
||||
<caret>assertFailsWith<Exception>("", {})
|
||||
assertFailsWith(RuntimeException::class.java, "", {})
|
||||
assertFailsWith(RuntimeException::class, "", {})
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: FALSE
|
||||
|
||||
fun Int.withIndex(): List<Pair<Int, Int>> = linkedListOf<Pair<Int, Int>>()
|
||||
fun Int.withIndex(): List<Pair<Int, Int>> = listOf<Pair<Int, Int>>()
|
||||
|
||||
fun foo(s: Int) {
|
||||
for ((index<caret>, a) in s.withIndex()) {
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
package some
|
||||
|
||||
fun testFun() {
|
||||
<caret>measureTimeNano({})
|
||||
<caret>measureNanoTime({})
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
// "Import" "true"
|
||||
package some
|
||||
|
||||
import kotlin.system.measureTimeNano
|
||||
import kotlin.system.measureNanoTime
|
||||
|
||||
fun testFun() {
|
||||
measureTimeNano({})
|
||||
measureNanoTime({})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user