Renamed in test data

This commit is contained in:
Valentin Kipyatkov
2015-04-14 22:05:42 +03:00
parent 0334ad1152
commit 94480e3d5c
126 changed files with 79 additions and 79 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.intentions.SimplifyNegatedBinaryExpressionIntention
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '==' expression to '!='
fun test(n: Int) {
!(0<caret> == 1)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '==' expression to '!='
fun test(n: Int) {
0 != 1
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '>' expression to '<='
fun test(n: Int) {
!(0<caret> > 1)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '>' expression to '<='
fun test(n: Int) {
0 <= 1
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '>=' expression to '<'
fun test(n: Int) {
!(0<caret> >= 1)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '>=' expression to '<'
fun test(n: Int) {
0 < 1
}
@@ -0,0 +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 a = A(1)
!(0<caret> in a)
}
@@ -0,0 +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 a = A(1)
0 !in a
}
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun Int.lt(b: Int): Boolean = this < b
fun test(n: Int) {
!(1<caret> lt 2)
}
@@ -0,0 +1,93 @@
<problems>
<problem>
<file>notIs.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/notIs.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '!is' expression to 'is'</description>
</problem>
<problem>
<file>notIn.kt</file>
<line>8</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/notIn.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '!in' expression to 'in'</description>
</problem>
<problem>
<file>notEquals.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/notEquals.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '!=' expression to '=='</description>
</problem>
<problem>
<file>lessThanOrEquals.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/lessThanOrEquals.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '&lt;=' expression to '&gt;'</description>
</problem>
<problem>
<file>lessThan.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/lessThan.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '&lt;' expression to '&gt;='</description>
</problem>
<problem>
<file>is.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/is.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated 'is' expression to '!is'</description>
</problem>
<problem>
<file>in.kt</file>
<line>8</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/in.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated 'in' expression to '!in'</description>
</problem>
<problem>
<file>greaterThanOrEquals.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/greaterThanOrEquals.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '&gt;=' expression to '&lt;'</description>
</problem>
<problem>
<file>greaterThan.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/greaterThan.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '&gt;' expression to '&lt;='</description>
</problem>
<problem>
<file>equals.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/equals.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Simplify Negated Binary Expression</problem_class>
<description>Simplify negated '==' expression to '!='</description>
</problem>
</problems>
@@ -0,0 +1 @@
// INSPECTION_CLASS: org.jetbrains.kotlin.idea.inspections.SimplifyBinaryNegationInspection
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated 'is' expression to '!is'
fun test(n: Int) {
!(0<caret> is Int)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated 'is' expression to '!is'
fun test(n: Int) {
0 !is Int
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '<' expression to '>='
fun test(n: Int) {
!(0<caret> < 1)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '<' expression to '>='
fun test(n: Int) {
0 >= 1
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '<=' expression to '>'
fun test(n: Int) {
!(0<caret> <= 1)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '<=' expression to '>'
fun test(n: Int) {
0 > 1
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '!=' expression to '=='
fun test(n: Int) {
!(0<caret> != 1)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '!=' expression to '=='
fun test(n: Int) {
0 == 1
}
@@ -0,0 +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 a = A(1)
!(0<caret> !in a)
}
@@ -0,0 +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 a = A(1)
0 in a
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '!is' expression to 'is'
fun test(n: Int) {
!(0<caret> !is Int)
}
@@ -0,0 +1,4 @@
// INTENTION_TEXT: Simplify negated '!is' expression to 'is'
fun test(n: Int) {
0 is Int
}
@@ -0,0 +1,4 @@
// IS_APPLICABLE: false
fun test(n: Int) {
!<caret>true
}