From 56207dfe5a36329d1b217b54847db8420f752d68 Mon Sep 17 00:00:00 2001 From: Nikolaus Waxweiler Date: Wed, 13 Jan 2021 23:47:53 +0000 Subject: [PATCH] Add test --- tests/glyphdata_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/glyphdata_test.py b/tests/glyphdata_test.py index bdc88e364..3f1817659 100644 --- a/tests/glyphdata_test.py +++ b/tests/glyphdata_test.py @@ -138,6 +138,12 @@ def cat(n): self.assertEqual(cat("_aaa"), (None, None)) self.assertEqual(cat("dal_alef-ar"), ("Letter", "Ligature")) self.assertEqual(cat("dal_lam-ar.dlig"), ("Letter", "Ligature")) + self.assertEqual(cat("a.sc"), ("Letter", "Smallcaps")) + self.assertEqual(cat("a.sc.ss01"), ("Letter", "Smallcaps")) + self.assertEqual(cat("a.smcp"), ("Letter", "Smallcaps")) + self.assertEqual(cat("a.smcp.ss01"), ("Letter", "Smallcaps")) + self.assertEqual(cat("a.c2sc"), ("Letter", "Smallcaps")) + self.assertEqual(cat("a.c2sc.ss01"), ("Letter", "Smallcaps")) def test_bug232(self): # https://github.com/googlefonts/glyphsLib/issues/232