mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test for wrapping in docstrings
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
def foo():
|
||||
"""
|
||||
Gallia est omnis divisa in partes tres, quarum unam incolumnt Belgae,
|
||||
aliam Aquitani
|
||||
"""
|
||||
@@ -0,0 +1,4 @@
|
||||
def foo():
|
||||
"""
|
||||
Gallia est omnis divisa in partes tres, quarum unam incolumnt Belgae, aliam <caret>
|
||||
"""
|
||||
@@ -37,9 +37,13 @@ public class PyWrapTest extends PyLightFixtureTestCase {
|
||||
doTest("Aquitani");
|
||||
}
|
||||
|
||||
public void testWrapInDocstring() {
|
||||
doTest("Aquitani");
|
||||
}
|
||||
|
||||
private void doTest(final String textToType) {
|
||||
myFixture.configureByFile("wrap/" + getTestName(false) + ".py");
|
||||
myFixture.type(textToType);
|
||||
myFixture.checkResultByFile("wrap/" + getTestName(false) + ".after.py");
|
||||
myFixture.checkResultByFile("wrap/" + getTestName(false) + ".after.py", true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user