Skip to content
Prev Previous commit
Next Next commit
typo
  • Loading branch information
xi committed Sep 3, 2021
commit db82b6cdc04e3ed7f4628b6840742060d7c933c4
2 changes: 1 addition & 1 deletion Lib/test/test_textwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ def text_len(text):

text = "123 🔧"
expected = ["123", "🔧"]
self.check_wrap(text, 6, expected, text_len=text_len)
self.check_wrap(text, 5, expected, text_len=text_len)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that more tests are needed; text_len is used at multiple places in the code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests! Could some of them use different texts?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to avoid adding example for languages that I do not speak myself (e.g. Chinese). Are there ways to reach out to the wider community to provide meaningful examples?



if __name__ == '__main__':
Expand Down