mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
remove bogus indent > 0 check
This commit is contained in:
9
python/testData/copyPaste/IndentIncrease.after.py
Normal file
9
python/testData/copyPaste/IndentIncrease.after.py
Normal file
@@ -0,0 +1,9 @@
|
||||
class A:
|
||||
def bar(self):
|
||||
pass
|
||||
|
||||
def foo():
|
||||
pass
|
||||
|
||||
def quux(self):
|
||||
pass
|
||||
8
python/testData/copyPaste/IndentIncrease.dst.py
Normal file
8
python/testData/copyPaste/IndentIncrease.dst.py
Normal file
@@ -0,0 +1,8 @@
|
||||
class A:
|
||||
def bar(self):
|
||||
pass
|
||||
|
||||
<caret>
|
||||
|
||||
def quux(self):
|
||||
pass
|
||||
2
python/testData/copyPaste/IndentIncrease.src.py
Normal file
2
python/testData/copyPaste/IndentIncrease.src.py
Normal file
@@ -0,0 +1,2 @@
|
||||
<selection>def foo():
|
||||
pass</selection>
|
||||
@@ -15,6 +15,10 @@ public class PyCopyPasteTest extends PyLightFixtureTestCase {
|
||||
doTest();
|
||||
}
|
||||
|
||||
public void testIndentIncrease() {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() {
|
||||
String name = getTestName(false);
|
||||
myFixture.configureByFile("copyPaste/" + name + ".src.py");
|
||||
|
||||
Reference in New Issue
Block a user