Add a test for encoding of : as a legacy ascii key

This commit is contained in:
Kovid Goyal 2021-02-15 05:27:32 +05:30
parent 19b882a0bd
commit 6b9c280214
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -392,6 +392,7 @@ class TestKeys(BaseTest):
# }}}
ae(enc(key=ord(':'), shifted_key=ord('/'), mods=shift | alt), '\x1b/')
ae(enc(key=ord(':'), mods=alt), '\x1b:')
ae(enc(key=ord(' ')), ' ')
ae(enc(key=ord(' '), mods=ctrl), '\0')
ae(enc(key=ord(' '), mods=alt), '\x1b ')