Skip to content

Commit f37733b

Browse files
committed
test: cover whitespace-only slugify input
Test whitespace-only slugify returns empty (issue #169)
1 parent 7b6d5d9 commit f37733b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,3 +655,9 @@ def test_multivalued_options_with_text(self):
655655

656656
if __name__ == '__main__': # pragma: nocover
657657
unittest.main()
658+
659+
660+
def test_slugify_whitespace_only_returns_empty():
661+
from slugify import slugify
662+
assert slugify(" ") == ""
663+
assert slugify("\t\n") == ""

0 commit comments

Comments
 (0)