Fix test: do not propose to change 'mod' to '%'
This commit is contained in:
Vendored
+3
-1
@@ -1,4 +1,6 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
// INTENTION_TEXT: Replace call with binary operator
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun mod(a: Int): Test = Test()
|
||||
|
||||
Vendored
+2
@@ -1,4 +1,6 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
// IS_APPLICABLE: false
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun mod(a: Int): Test = Test()
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun rem(a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test.rem<caret>(1)
|
||||
}
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// INTENTION_TEXT: Replace with '%' operator
|
||||
|
||||
fun test() {
|
||||
class Test {
|
||||
operator fun rem(a: Int): Test = Test()
|
||||
}
|
||||
val test = Test()
|
||||
test % 1
|
||||
}
|
||||
@@ -3054,6 +3054,12 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("remSanityTest.kt")
|
||||
public void testRemSanityTest() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator/remSanityTest.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("safeCompareTo.kt")
|
||||
public void testSafeCompareTo() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/intentions/conventionNameCalls/replaceCallWithBinaryOperator/safeCompareTo.kt");
|
||||
|
||||
Reference in New Issue
Block a user