Allow to assert rank value in ranking test
Update test data for lambdas.kt because of same rank check bug fixed.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
//FILE: a/a.kt
|
||||
// DISABLE_STRICT_MODE
|
||||
package a
|
||||
|
||||
abstract class R {
|
||||
abstract fun run()
|
||||
}
|
||||
|
||||
fun eval(r: R) {
|
||||
r.run()
|
||||
}
|
||||
|
||||
class Some {
|
||||
fun foo() {
|
||||
eval(object : R() { // Line with negative score
|
||||
override fun run() {
|
||||
val a = 1 // R: 4 L: 17
|
||||
val b = 12 // R: 4 L: 18
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
+4
-2
@@ -1,11 +1,12 @@
|
||||
// DO_NOT_CHECK_CLASS_FQNAME
|
||||
// DISABLE_STRICT_MODE
|
||||
|
||||
//FILE: a/a.kt
|
||||
package a
|
||||
|
||||
fun block(l: () -> Unit) {}
|
||||
|
||||
class A {
|
||||
class A { // Line with the same rank
|
||||
fun a() {
|
||||
block {
|
||||
val a = 5
|
||||
@@ -18,12 +19,13 @@ class A {
|
||||
|
||||
//FILE: b/a.kt
|
||||
package b
|
||||
// Fake Line
|
||||
|
||||
import a.block
|
||||
|
||||
class A {
|
||||
fun b() {
|
||||
val g = 5
|
||||
val g = 5 // Line with the same rank
|
||||
val x = 1
|
||||
block { val y = 2 }
|
||||
block {
|
||||
|
||||
Reference in New Issue
Block a user