|
|
@ -33,11 +33,11 @@ class TrailingSpacesTestCase(RuleTestCase):
|
|
|
|
self.check('', conf)
|
|
|
|
self.check('', conf)
|
|
|
|
self.check('\n', conf)
|
|
|
|
self.check('\n', conf)
|
|
|
|
self.check(' \n', conf, problem=(1, 1))
|
|
|
|
self.check(' \n', conf, problem=(1, 1))
|
|
|
|
self.check('\t\t\t\n', conf, problem=(1, 1))
|
|
|
|
self.check('\t\t\t\n', conf, problem=(1, 1, 'syntax'))
|
|
|
|
self.check('---\n'
|
|
|
|
self.check('---\n'
|
|
|
|
'some: text \n', conf, problem=(2, 11))
|
|
|
|
'some: text \n', conf, problem=(2, 11))
|
|
|
|
self.check('---\n'
|
|
|
|
self.check('---\n'
|
|
|
|
'some: text\t\n', conf, problem=(2, 11))
|
|
|
|
'some: text\t\n', conf, problem=(2, 11, 'syntax'))
|
|
|
|
|
|
|
|
|
|
|
|
def test_with_dos_new_lines(self):
|
|
|
|
def test_with_dos_new_lines(self):
|
|
|
|
conf = ('trailing-spaces: {}\n'
|
|
|
|
conf = ('trailing-spaces: {}\n'
|
|
|
|