Add test cases for comment formatting scenarios described in PY-12938

This commit is contained in:
Mikhail Golubev
2015-02-09 20:03:12 +03:00
parent e5f1141929
commit 1fcf101da8
7 changed files with 35 additions and 4 deletions
@@ -0,0 +1,4 @@
#: :type: dict of (str, C)
d = {'foo': C()}
#: :type: list of str
xs = ['bar']
@@ -0,0 +1,4 @@
#: :type: dict of (str, C)
d = {'foo': C()}
#: :type: list of str
xs = ['bar']
@@ -0,0 +1,6 @@
###########
##
## MANUAL
##
print('Spam')
@@ -0,0 +1,6 @@
###########
##
## MANUAL
##
print('Spam')
@@ -401,10 +401,6 @@ public class PyFormatterTest extends PyTestCase {
doTest();
}
public void testShebang() { //PY-12775
doTest();
}
public void testParenthesisAroundGeneratorExpression() {
doTest();
}
@@ -505,6 +501,21 @@ public class PyFormatterTest extends PyTestCase {
doTest();
}
// PY-12938
public void testDoubleHashCommentIgnored() {
doTest();
}
// PY-12938
public void testDocCommentIgnored() {
doTest();
}
// PY-12775
public void testShebangCommentIgnored() {
doTest();
}
/**
* This test merely checks that call to {@link com.intellij.psi.codeStyle.CodeStyleManager#reformat(com.intellij.psi.PsiElement)}
* is possible for Python sources.