Introduce 'when' subject: consider equality right-hand side as subject candidate

This commit is contained in:
Alexey Sedunov
2013-06-10 18:01:21 +04:00
parent e13508c22b
commit f9c4606128
6 changed files with 36 additions and 3 deletions
@@ -585,6 +585,11 @@ public class CodeTransformationsTestGenerated extends AbstractCodeTransformation
doTestIntroduceWhenSubject("idea/testData/codeInsight/codeTransformations/branched/when/introduceSubject/whenWithSubject.kt");
}
@TestMetadata("whenWithSwappedEqualityTests.kt")
public void testWhenWithSwappedEqualityTests() throws Exception {
doTestIntroduceWhenSubject("idea/testData/codeInsight/codeTransformations/branched/when/introduceSubject/whenWithSwappedEqualityTests.kt");
}
@TestMetadata("whenWithUnmatchedCandidateSubjects.kt")
public void testWhenWithUnmatchedCandidateSubjects() throws Exception {
doTestIntroduceWhenSubject("idea/testData/codeInsight/codeTransformations/branched/when/introduceSubject/whenWithUnmatchedCandidateSubjects.kt");