ttFont_test: another test for missing glyph name that doesn't match 'glyph\d+' pattern
This commit is contained in:
parent
b137fd9616
commit
d64ee127be
@ -272,3 +272,5 @@ def test_getGlyphID():
|
|||||||
assert font.getGlyphID("glyph12345") == 12345 # virtual glyph
|
assert font.getGlyphID("glyph12345") == 12345 # virtual glyph
|
||||||
with pytest.raises(KeyError):
|
with pytest.raises(KeyError):
|
||||||
font.getGlyphID("non_existent")
|
font.getGlyphID("non_existent")
|
||||||
|
with pytest.raises(KeyError):
|
||||||
|
font.getGlyphID("glyph_prefix_but_invalid_id")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user