diff --git a/python/testData/intentions/demorgan/after4.py b/python/testData/intentions/demorgan/after4.py new file mode 100644 index 000000000000..2120c7ca09f5 --- /dev/null +++ b/python/testData/intentions/demorgan/after4.py @@ -0,0 +1,8 @@ +a = True +b = False +c = True +d = False + +#before intention +if not(not(a and b and c) and not d): + print "before" diff --git a/python/testData/intentions/demorgan/before4.py b/python/testData/intentions/demorgan/before4.py new file mode 100644 index 000000000000..7c95dbc754cb --- /dev/null +++ b/python/testData/intentions/demorgan/before4.py @@ -0,0 +1,8 @@ +a = True +b = False +c = True +d = False + +#before intention +if a and b and c or d: + print "before" diff --git a/python/testSrc/com/jetbrains/python/PythonDemorganLawIntentionTest.java b/python/testSrc/com/jetbrains/python/PythonDemorganLawIntentionTest.java index d55d5899ed8a..58f3a04ad490 100644 --- a/python/testSrc/com/jetbrains/python/PythonDemorganLawIntentionTest.java +++ b/python/testSrc/com/jetbrains/python/PythonDemorganLawIntentionTest.java @@ -20,6 +20,10 @@ public class PythonDemorganLawIntentionTest extends PyLightFixtureTestCase { doTest(); } + public void test4() throws Exception { + doTest(); + } + private void doTest() throws Exception { myFixture.configureByFile("before" + getTestName(false) + ".py"); final IntentionAction action = myFixture.findSingleIntention("DeMorgan Law");