PY-29121 Handle a missing case of the common name placement in Simplify chained comparison

When it's on the right of a leftmost comparison and there's an
additional AND term between the two comparisons to be chained.
This commit is contained in:
Mikhail Golubev
2018-03-23 17:43:41 +03:00
parent 36df2222b6
commit ee16086211
4 changed files with 20 additions and 4 deletions
@@ -306,6 +306,11 @@ public class PyQuickFixTest extends PyTestCase {
doInspectionTest(PyChainedComparisonsInspection.class, "Simplify chained comparison", true, true);
}
// PY-29121
public void testChainedComparison9() {
doInspectionTest(PyChainedComparisonsInspection.class, "Simplify chained comparison", true, true);
}
// PY-1362, PY-2585
public void testStatementEffect() {
doInspectionTest(PyStatementEffectInspection.class, PyBundle.message("QFIX.statement.effect"), true, true);