Skip to content

Commit 0114962

Browse files
Added test for --markdown-linebreak-ext and --chars together
1 parent a33a8f0 commit 0114962

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/trailing_whitespace_fixer_test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,11 @@ def test_custom_charset_no_change(tmpdir):
9494
path.write('\ta \t\n')
9595
ret = main([path.strpath, '--chars', ' '])
9696
assert ret == 0
97+
98+
99+
def test_markdown_with_custom_charset(tmpdir):
100+
path = tmpdir.join('file.md')
101+
path.write('\ta \t \n')
102+
ret = main([path.strpath, '--chars', ' ', '--markdown-linebreak-ext', '*'])
103+
assert ret == 1
104+
assert path.read() == '\ta \t \n'

0 commit comments

Comments
 (0)