Skip to content

Commit

Permalink
test(#20): add unit test for removal of trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Mar 21, 2024
1 parent a6fd94c commit acfbcf5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@
Test Testing Test Testing Test Testing Test Testing Test Testing
"""

TICKET_020 = """
- first line first line first line first line first line first line first line
whitespace
- second line
"""
TICKET_020_TRUE_79 = """
- first line first line first line first line first line first line first line
whitespace
- second line
"""


@pytest.mark.parametrize(
("text", "expected", "align_lists", "wrap"),
Expand All @@ -97,12 +108,14 @@
(CASE_1, CASE_1_FALSE_80, False, 80),
(CASE_1, CASE_1_TRUE_40, True, 40),
(CASE_1, CASE_1_TRUE_80, True, 80),
(TICKET_020, TICKET_020_TRUE_79, True, 79),
],
ids=[
"CASE_1_FALSE_40",
"CASE_1_FALSE_80",
"CASE_1_TRUE_40",
"CASE_1_TRUE_80",
"TICKET_020_TRUE_79",
],
)
def test_wrap(text: str, expected: str, align_lists: bool, wrap: int):
Expand Down

0 comments on commit acfbcf5

Please sign in to comment.