Fixed tests after adding error checking for intention tests.
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
// INTENTION_TEXT: Simplify negated 'in' expression to '!in'
|
||||
class A(val e: Int) {
|
||||
fun contains(i: Int): Boolean = e == i
|
||||
}
|
||||
|
||||
fun test(n: Int) {
|
||||
val arr = ArrayList<Int>(1)
|
||||
!(0<caret> in arr)
|
||||
}
|
||||
val a = A(1)
|
||||
!(0<caret> in a)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
// INTENTION_TEXT: Simplify negated 'in' expression to '!in'
|
||||
class A(val e: Int) {
|
||||
fun contains(i: Int): Boolean = e == i
|
||||
}
|
||||
|
||||
fun test(n: Int) {
|
||||
val arr = ArrayList<Int>(1)
|
||||
0 !in arr
|
||||
}
|
||||
val a = A(1)
|
||||
0 !in a
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun lt(a: Int, b: Int): Boolean = a < b
|
||||
fun Int.lt(b: Int): Boolean = this < b
|
||||
fun test(n: Int) {
|
||||
!(1<caret> lt 2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
// INTENTION_TEXT: Simplify negated '!in' expression to 'in'
|
||||
class A(val e: Int) {
|
||||
fun contains(i: Int): Boolean = e == i
|
||||
}
|
||||
|
||||
fun test(n: Int) {
|
||||
val arr = ArrayList<Int>(1)
|
||||
!(0<caret> !in arr)
|
||||
}
|
||||
val a = A(1)
|
||||
!(0<caret> !in a)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
// INTENTION_TEXT: Simplify negated '!in' expression to 'in'
|
||||
class A(val e: Int) {
|
||||
fun contains(i: Int): Boolean = e == i
|
||||
}
|
||||
|
||||
fun test(n: Int) {
|
||||
val arr = ArrayList<Int>(1)
|
||||
0 in arr
|
||||
}
|
||||
val a = A(1)
|
||||
0 in a
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user