From 0114962a7492186863997724384f6a77f09179f1 Mon Sep 17 00:00:00 2001 From: iconmaster5326 Date: Fri, 25 Oct 2019 12:28:50 -0400 Subject: [PATCH] Added test for --markdown-linebreak-ext and --chars together --- tests/trailing_whitespace_fixer_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/trailing_whitespace_fixer_test.py b/tests/trailing_whitespace_fixer_test.py index ec4c918..97f9aef 100644 --- a/tests/trailing_whitespace_fixer_test.py +++ b/tests/trailing_whitespace_fixer_test.py @@ -94,3 +94,11 @@ def test_custom_charset_no_change(tmpdir): path.write('\ta \t\n') ret = main([path.strpath, '--chars', ' ']) assert ret == 0 + + +def test_markdown_with_custom_charset(tmpdir): + path = tmpdir.join('file.md') + path.write('\ta \t \n') + ret = main([path.strpath, '--chars', ' ', '--markdown-linebreak-ext', '*']) + assert ret == 1 + assert path.read() == '\ta \t \n'