mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Add tests for meta- bit set
This commit is contained in:
parent
72cdb70296
commit
e8792c1f65
1 changed files with 4 additions and 1 deletions
|
|
@ -198,7 +198,10 @@ def unit_tests():
|
|||
from curses import ascii
|
||||
for ch, expected in [('a', 'a'), ('A', 'A'),
|
||||
(';', ';'), (' ', ' '),
|
||||
('\x7f', '^?'), ('\n', '^J'), ('\0', '^@')]:
|
||||
('\x7f', '^?'), ('\n', '^J'), ('\0', '^@'),
|
||||
# Meta-bit characters
|
||||
('\x8a', '!^J'), ('\xc1', '!A'),
|
||||
]:
|
||||
if ascii.unctrl(ch) != expected:
|
||||
print 'curses.unctrl fails on character', repr(ch)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue