tests: fix expected results after Unicode 11 update

fixes https://github.com/fonttools/fonttools/issues/1291
This commit is contained in:
Cosimo Lupo 2018-07-09 19:31:30 +01:00
parent 0ae200f310
commit a526b7170c
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482
2 changed files with 6 additions and 4 deletions

View File

@ -75,7 +75,7 @@ def script_extension(char):
>>> script_extension("a") == {'Latn'}
True
>>> script_extension(unichr(0x060C)) == {'Arab', 'Syrc', 'Thaa'}
>>> script_extension(unichr(0x060C)) == {'Arab', 'Rohg', 'Syrc', 'Thaa'}
True
>>> script_extension(unichr(0x10FFFF)) == {'Zzzz'}
True

View File

@ -165,8 +165,9 @@ def test_script_extension():
assert unicodedata.script_extension("\u0660") == {'Arab', 'Thaa'}
assert unicodedata.script_extension("\u0964") == {
'Beng', 'Deva', 'Gran', 'Gujr', 'Guru', 'Knda', 'Mahj', 'Mlym',
'Orya', 'Sind', 'Sinh', 'Sylo', 'Takr', 'Taml', 'Telu', 'Tirh'}
'Beng', 'Deva', 'Dogr', 'Gong', 'Gran', 'Gujr', 'Guru', 'Knda',
'Mahj', 'Mlym', 'Orya', 'Sind', 'Sinh', 'Sylo', 'Takr', 'Taml',
'Telu', 'Tirh'}
def test_script_name():
@ -200,7 +201,8 @@ def test_block():
assert unicodedata.block("\x00") == "Basic Latin"
assert unicodedata.block("\x7F") == "Basic Latin"
assert unicodedata.block("\x80") == "Latin-1 Supplement"
assert unicodedata.block("\u1c90") == "No_Block"
assert unicodedata.block("\u1c90") == "Georgian Extended"
assert unicodedata.block("\u0870") == "No_Block"
def test_ot_tags_from_script():