]> granicus.if.org Git - python/commitdiff
Add tests for meta- bit set
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 29 Aug 2003 18:49:05 +0000 (18:49 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 29 Aug 2003 18:49:05 +0000 (18:49 +0000)
Lib/test/test_curses.py

index e65adbfc6509fcb2fb28c4c40e4921afed3a5d70..10ebe09243e25e96154bdb9597b9f55a5bb843f2 100644 (file)
@@ -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)