[document-end] adds min/max empty lines before

This commit is contained in:
Christian Krause
2021-07-14 08:56:39 +02:00
parent 0edff4fca0
commit 88d302e4c7
2 changed files with 37 additions and 2 deletions

View File

@@ -72,3 +72,15 @@ class DocumentEndTestCase(RuleTestCase):
'---\n'
'third: document\n'
'...\n', conf, problem=(6, 1))
def test_empty_lines(self):
conf = ('document-end:\n'
' present: true\n'
' max-empty-lines-before: 0\n')
self.check('---\n'
'doc: ument\n'
'...\n', conf)
self.check('---\n'
'doc: ument\n'
'\n'
'...\n', conf, problem=(3, 0))