Skip to content

Commit 5946df8

Browse files
authored
Merge pull request #1000 from cmyr/add-glyphdata-test-cases
[glyphdata] Add test to hit _split_glyph_name
2 parents e2ebf5b + a93588a commit 5946df8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/glyphdata_test.py

+6
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ def cat(n):
141141
self.assertEqual(cat("_aaa"), (None, None))
142142
self.assertEqual(cat("dal_alef-ar"), ("Letter", "Ligature"))
143143
self.assertEqual(cat("dal_lam-ar.dlig"), ("Letter", "Ligature"))
144+
self.assertEqual(cat("po-khmer"), ("Letter", None))
145+
self.assertEqual(cat("po-khmer.below"), ("Mark", "Nonspacing"))
146+
# see https://github.com/googlefonts/glyphsLib/commit/68e4e9cf44c9919de
147+
# this glyph is not in the data, and we want fallback to find po-khmer.below
148+
# before po-khmer
149+
self.assertEqual(cat("po-khmer.below.ro"), ("Mark", "Nonspacing"))
144150

145151
def test_category_buy_unicode(self):
146152
def cat(n, u):

0 commit comments

Comments
 (0)