mirror of
https://github.com/python/cpython.git
synced 2025-10-26 03:04:41 +00:00
fix: address comments
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
parent
30e130fa5a
commit
07aa4bcc8a
2 changed files with 9 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ def test_str_width(self):
|
|||
'\uffb9',
|
||||
'\N{LATIN SMALL LETTER E WITH ACUTE}', # é
|
||||
'\N{LATIN SMALL LETTER E WITH CEDILLA}', # ȩ
|
||||
'\u00ad',
|
||||
]
|
||||
for c in characters:
|
||||
self.assertEqual(str_width(c), 1)
|
||||
|
|
@ -22,6 +23,8 @@ def test_str_width(self):
|
|||
zero_width_characters = [
|
||||
'\N{COMBINING ACUTE ACCENT}',
|
||||
'\N{ZERO WIDTH JOINER}',
|
||||
'\u2028',
|
||||
'\u2029',
|
||||
]
|
||||
for c in zero_width_characters:
|
||||
with self.subTest(character=c):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue