Skip to content

Commit

Permalink
narf
Browse files Browse the repository at this point in the history
  • Loading branch information
jquast committed Jun 26, 2024
1 parent 9de76a2 commit 5b0df88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def child():

def test_east_asian_emojis_width_1():
"""Tests edge-case of east-asian and emoji characters split into single columns."""
#@as_subprocess
@as_subprocess
def child():
term = TestTerminal()
# by @grayjk from https://github.com/jquast/blessed/issues/273
Expand All @@ -127,8 +127,8 @@ def child():
# In this case, each character gets its own line--even though '\u200D' is considered
# a width of 0, the next emoji is "too large to fit".
# RGI_Emoji_ZWJ_Sequence ; family: woman, woman, girl, boy
result = term.wrap(u'\U0001F469\u200D\U0001F469\u200D\U0001F467\u200D\U0001F466', 1)
assert result == [u'\U0001F469', u'\u200D', u'\U0001F469', u'\u200D',
u'\U0001F467', u'\u200D', u'\U0001F466']
given = u'\U0001F469\u200D\U0001F469\u200D\U0001F467\u200D\U0001F466'
result = term.wrap(given, 1)
assert result == list(given)

child()

0 comments on commit 5b0df88

Please sign in to comment.