mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
added tests for PY-3281
This commit is contained in:
@@ -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"
|
||||
@@ -0,0 +1,8 @@
|
||||
a = True
|
||||
b = False
|
||||
c = True
|
||||
d = False
|
||||
|
||||
#before intention
|
||||
if a and b and c or<caret> d:
|
||||
print "before"
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user