mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Issue #23181: More "codepoint" -> "code point".
This commit is contained in:
parent
b2653b344e
commit
d3faf43f9b
24 changed files with 46 additions and 46 deletions
|
|
@ -48,10 +48,10 @@ def check_num(num, expected):
|
|||
check(s % num, char)
|
||||
for end in [' ', 'X']:
|
||||
check((s+end) % num, char+end)
|
||||
# check invalid codepoints
|
||||
# check invalid code points
|
||||
for cp in [0xD800, 0xDB00, 0xDC00, 0xDFFF, 0x110000]:
|
||||
check_num(cp, '\uFFFD')
|
||||
# check more invalid codepoints
|
||||
# check more invalid code points
|
||||
for cp in [0x1, 0xb, 0xe, 0x7f, 0xfffe, 0xffff, 0x10fffe, 0x10ffff]:
|
||||
check_num(cp, '')
|
||||
# check invalid numbers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue