Rules: comments: Allow empty comments

This commit is contained in:
Adrien Vergé
2016-01-14 19:56:10 +01:00
parent 5cc900f2a8
commit 3989a09d32
2 changed files with 14 additions and 1 deletions

View File

@@ -163,3 +163,15 @@ class CommentsTestCase(RuleTestCase):
problem5=(9, 2),
problem6=(10, 4),
problem7=(13, 30))
def test_empty_comment(self):
conf = ('comments:\n'
' require-starting-space: yes\n'
' min-spaces-from-content: 2\n')
self.check('---\n'
'# This is paragraph 1.\n'
'#\n'
'# This is paragraph 2.\n', conf)
self.check('---\n'
'inline: comment #\n'
'\n', conf)