Implement support for emoji skin tone modifiers

Fixes #787
This commit is contained in:
Kovid Goyal
2018-08-04 10:06:25 +05:30
parent 28447d3389
commit 000c1cf306
8 changed files with 38 additions and 14 deletions

View File

@@ -89,6 +89,13 @@ class TestScreen(BaseTest):
self.ae(str(s.line(4)), 'a\u0306b1\u030623')
self.ae((s.cursor.x, s.cursor.y), (2, 4))
def test_emoji_skin_tone_modifiers(self):
s = self.create_screen()
q = chr(0x1f469) + chr(0x1f3fd)
s.draw(q)
self.ae(str(s.line(0)), q)
self.ae(s.cursor.x, 2)
def test_char_manipulation(self):
s = self.create_screen()