• Home
  • Raw
  • Download

Lines Matching refs:assertEqual

68             self.assertEqual(len(w), 1)
69 self.assertEqual(w[-1].category, UserWarning)
71 self.assertEqual(parser.glyphNames_, {'a', 'b', 'c'})
89 self.assertEqual(type(c1), ast.Comment)
90 self.assertEqual(c1.text, "# Initial")
91 self.assertEqual(str(c1), "# Initial")
92 self.assertEqual(type(c2), ast.Comment)
93 self.assertEqual(c2.text, "# simple")
94 self.assertEqual(doc.statements[1].name, "test")
101 self.assertEqual(type(c1), ast.Comment)
102 self.assertEqual(c1.text, "# Initial")
103 self.assertEqual(str(c1), "# Initial")
111 self.assertEqual(type(anchor), ast.Anchor)
112 self.assertEqual(anchor.x, 120)
113 self.assertEqual(anchor.y, -20)
124 self.assertEqual(type(anchor), ast.Anchor)
125 self.assertEqual(anchor.x, 120)
126 self.assertEqual(anchor.y, -20)
127 self.assertEqual(anchor.contourpoint, 5)
139 self.assertEqual(type(anchor), ast.Anchor)
140 self.assertEqual(anchor.x, 120)
141 self.assertEqual(anchor.y, -20)
143 self.assertEqual(anchor.xDeviceTable, ((11, 111), (12, 112)))
161 self.assertEqual(type(anchor), ast.Anchor)
162 self.assertEqual(anchor.x, 120)
163 self.assertEqual(anchor.y, -20)
164 self.assertEqual(anchor.contourpoint, 7)
177 self.assertEqual(type(foo), ast.AnchorDefinition)
178 self.assertEqual(foo.name, "foo")
179 self.assertEqual(foo.x, 123)
180 self.assertEqual(foo.y, 456)
181 self.assertEqual(foo.contourpoint, None)
185 self.assertEqual(type(foo), ast.AnchorDefinition)
186 self.assertEqual(foo.name, "foo")
187 self.assertEqual(foo.x, 123)
188 self.assertEqual(foo.y, 456)
189 self.assertEqual(foo.contourpoint, 5)
194 self.assertEqual(anon.tag, "TEST")
195 self.assertEqual(anon.content, "foo\n ")
200 self.assertEqual(anon.tag, "TEST")
202 self.assertEqual(anon.content, "bar\n")
213 self.assertEqual(glyphstr([s.glyphs]), "[a e]")
214 self.assertEqual(s.contourPoints, {2})
218 self.assertEqual(liga.name, "liga")
223 self.assertEqual(liga.name, "liga")
225 self.assertEqual(liga.asFea(),
232 self.assertEqual(comment.text, "# Comment")
238 self.assertEqual(ref.featureName, "salt")
252 self.assertEqual(comment.text, "# Comment")
259 self.assertEqual(featureNames.statements, [])
265 self.assertEqual(s.revision, 2.5)
280 self.assertEqual(gc.name, "dash")
281 self.assertEqual(gc.glyphSet(), ("endash", "emdash", "figuredash"))
297 self.assertEqual(glyphstr([ab]), "[a b]")
298 self.assertEqual(glyphstr([xy]), "[x y]")
302 self.assertEqual(gc.name, "empty_set")
303 self.assertEqual(gc.glyphSet(), tuple())
307 self.assertEqual(foo.glyphSet(), ("a", "b"))
308 self.assertEqual(bar.glyphSet(), ("a", "b"))
316 self.assertEqual(doc.statements[-1].glyphSet(),
321 self.assertEqual(gc.name, "GlyphClass")
322 self.assertEqual(gc.glyphSet(), ("cid00999", "cid01000", "cid01001"))
332 self.assertEqual(gc.name, "swashes")
333 self.assertEqual(gc.glyphSet(), ("X.swash", "Y.swash", "Z.swash"))
337 self.assertEqual(gc.name, "defg.sc")
338 self.assertEqual(gc.glyphSet(), ("d.sc", "e.sc", "f.sc", "g.sc"))
343 self.assertEqual(gc.glyphSet(), ("A-foo.sc", "B-foo.sc", "C-foo.sc"))
348 self.assertEqual(gc.glyphSet(), ("A-foo.sc", "B-foo.sc", "C-foo.sc"))
359 self.assertEqual(gc.glyphSet(), ("A-foo.sc", "B-foo.sc", "C", "D"))
360 self.assertEqual(len(caplog.records), 2)
370 self.assertEqual(gc.glyphSet(), ("A-foo.sc-C-foo.sc",))
382 self.assertEqual(gc.glyphSet(), ("foo.2", "foo.3", "foo.4", "foo.5"))
386 self.assertEqual(gc.glyphSet(), ("foo.09", "foo.10", "foo.11"))
390 self.assertEqual(gc.glyphSet(), ("foo.123", "foo.124", "foo.125"))
409 self.assertEqual(gc.glyphSet(), (
417 self.assertEqual(vowels_lc.glyphSet(), tuple("aeiou"))
418 self.assertEqual(vowels_uc.glyphSet(), tuple("AEIOU"))
419 self.assertEqual(vowels.glyphSet(), tuple("aeiouAEIOUyY"))
420 self.assertEqual(vowels.asFea(),
432 self.assertEqual(foo.glyphSet(), ("a", "b"))
433 self.assertEqual(liga.statements[0].glyphSet(), ("a", "b", "l"))
434 self.assertEqual(smcp.statements[0].glyphSet(), ("a", "b", "s"))
442 self.assertEqual(list(f2.statements[0].glyphs[0].glyphSet()),
449 self.assertEqual(glyphstr([s.baseGlyphs]), "b")
450 self.assertEqual(glyphstr([s.ligatureGlyphs]), "l")
451 self.assertEqual(glyphstr([s.markGlyphs]), "m")
452 self.assertEqual(glyphstr([s.componentGlyphs]), "[C c]")
467 self.assertEqual(glyphstr(pref1), "e")
468 self.assertEqual(glyphstr(glyphs1), "t")
469 self.assertEqual(glyphstr(suff1), "c")
470 self.assertEqual(glyphstr(pref2), "q")
471 self.assertEqual(glyphstr(glyphs2), "u u")
472 self.assertEqual(glyphstr(suff2), "x")
482 self.assertEqual(glyphstr(prefix), "f [a e]")
483 self.assertEqual(glyphstr(glyphs), "d [a u]")
484 self.assertEqual(glyphstr(suffix), "[e y]")
499 self.assertEqual(glyphstr(pref1), "e")
500 self.assertEqual(glyphstr(glyphs1), "t")
501 self.assertEqual(glyphstr(suff1), "c")
502 self.assertEqual(glyphstr(pref2), "q")
503 self.assertEqual(glyphstr(glyphs2), "u u")
504 self.assertEqual(glyphstr(suff2), "x")
514 self.assertEqual(glyphstr(prefix), "f [a e]")
515 self.assertEqual(glyphstr(glyphs), "d [a u]")
516 self.assertEqual(glyphstr(suffix), "[e y]")
534 self.assertEqual(type(s1), ast.IncludeStatement)
535 self.assertEqual(s1.filename, "../family.fea")
536 self.assertEqual(s1.asFea(), "include(../family.fea);")
537 self.assertEqual(type(s2), ast.IncludeStatement)
538 self.assertEqual(s2.filename, "foo")
539 self.assertEqual(s2.asFea(), "include(foo);")
540 self.assertEqual(type(s3), ast.Comment)
541 self.assertEqual(s3.text, "# Comment")
548 self.assertEqual(type(s1), ast.IncludeStatement)
549 self.assertEqual(s1.filename, "../family.fea")
550 self.assertEqual(s1.asFea(), "include(../family.fea);")
555 self.assertEqual(type(s), ast.LanguageStatement)
556 self.assertEqual(s.language, "DEU ")
563 self.assertEqual(type(s), ast.LanguageStatement)
564 self.assertEqual(s.language, "DEU ")
573 self.assertEqual(type(s), ast.LanguageStatement)
574 self.assertEqual(s.language, "DEU ")
581 self.assertEqual(type(s), ast.LanguageStatement)
582 self.assertEqual(s.language, "DEU ")
591 self.assertEqual(type(s), ast.LanguageStatement)
592 self.assertEqual(s.language, "DEU ")
606 self.assertEqual(glyphstr([s.glyphs]), "[c_t f_i]")
607 self.assertEqual(s.carets, [2])
613 self.assertEqual(glyphstr([s.glyphs]), "f_f_i")
614 self.assertEqual(s.carets, [3, 7])
620 self.assertEqual(glyphstr([s.glyphs]), "[c_t f_i]")
621 self.assertEqual(s.carets, [7])
627 self.assertEqual(glyphstr([s.glyphs]), "f_i")
628 self.assertEqual(s.carets, [400, 380])
632 self.assertEqual(lookup.name, "Ligatures")
637 self.assertEqual(lookup.name, "Foo")
639 self.assertEqual(lookup.asFea(),
656 self.assertEqual(foo.value.xAdvance, 123)
669 self.assertEqual(foo.value.yAdvance, 123)
675 self.assertEqual(comment.text, "# Comment")
681 self.assertEqual(type(ref), ast.LookupReferenceStatement)
682 self.assertEqual(ref.lookup, foo)
690 self.assertEqual(ref.lookup, foo)
703 self.assertEqual(flag.value, 9)
706 self.assertEqual(flag.asFea(), "lookupflag RightToLeft IgnoreMarks;")
713 self.assertEqual(flag.value, 1)
715 self.assertEqual(flag.markAttachment.glyphSet(),
718 self.assertEqual(flag.asFea(),
725 self.assertEqual(flag.value, 1)
727 self.assertEqual(flag.markAttachment.glyphSet(),
730 self.assertEqual(flag.asFea(),
738 self.assertEqual(flag.value, 4)
741 self.assertEqual(flag.markFilteringSet.glyphSet(),
743 self.assertEqual(flag.asFea(),
750 self.assertEqual(flag.value, 4)
753 self.assertEqual(flag.markFilteringSet.glyphSet(),
755 self.assertEqual(flag.asFea(),
761 self.assertEqual(flag.value, 7)
764 self.assertEqual(flag.asFea(),
770 self.assertEqual(flag.value, 0)
773 self.assertEqual(flag.asFea(), "lookupflag 0;")
800 self.assertEqual(glyphstr([glyphs]), "one")
801 self.assertEqual(value.asFea(), "<1 2 3 4>")
808 self.assertEqual(glyphstr([glyphs]), "[one two]")
809 self.assertEqual(value.asFea(), "-300")
816 self.assertEqual(glyphstr([glyphs]), "[one two]")
817 self.assertEqual(value.asFea(), "-300")
824 self.assertEqual(glyphstr([glyphs1]), "one")
825 self.assertEqual(val1.asFea(), "1")
826 self.assertEqual(glyphstr([glyphs2]), "two")
827 self.assertEqual(val2.asFea(), "2")
828 self.assertEqual(glyphstr([glyphs3]), "[five six]")
829 self.assertEqual(val3.asFea(), "56")
830 self.assertEqual(pos.prefix, [])
831 self.assertEqual(pos.suffix, [])
848 self.assertEqual(glyphstr([glyphs]), "[T Y]")
849 self.assertEqual(value.asFea(), "20")
850 self.assertEqual(glyphstr(pos.prefix), "[A B]")
851 self.assertEqual(glyphstr(pos.suffix), "comma")
858 self.assertEqual(glyphstr([glyphs]), "[T Y]")
859 self.assertEqual(value.asFea(), "20")
860 self.assertEqual(glyphstr(pos.prefix), "[A B]")
861 self.assertEqual(glyphstr(pos.suffix), "comma")
868 self.assertEqual(glyphstr([glyphs]), "[T Y]")
869 self.assertEqual(value.asFea(), "<0 0 0 0>")
870 self.assertEqual(glyphstr(pos.prefix), "[A B]")
871 self.assertEqual(glyphstr(pos.suffix), "comma")
878 self.assertEqual(type(pos), ast.PairPosStatement)
880 self.assertEqual(glyphstr([pos.glyphs1]), "[T V]")
881 self.assertEqual(pos.valuerecord1.asFea(), "-60")
882 self.assertEqual(glyphstr([pos.glyphs2]), "[a b c]")
883 self.assertEqual(pos.valuerecord2.asFea(), "<1 2 3 4>")
890 self.assertEqual(type(pos), ast.PairPosStatement)
892 self.assertEqual(glyphstr([pos.glyphs1]), "[T V]")
893 self.assertEqual(pos.valuerecord1.asFea(), "-60")
894 self.assertEqual(glyphstr([pos.glyphs2]), "[a b c]")
895 self.assertEqual(pos.valuerecord2.asFea(), "<1 2 3 4>")
902 self.assertEqual(type(pos), ast.PairPosStatement)
904 self.assertEqual(glyphstr([pos.glyphs1]), "[T V]")
906 self.assertEqual(pos.valuerecord1.asFea(), "<NULL>")
907 self.assertEqual(glyphstr([pos.glyphs2]), "[a b c]")
908 self.assertEqual(pos.valuerecord2.asFea(), "<1 2 3 4>")
909 self.assertEqual(pos.asFea(), "pos [T V] <NULL> [a b c] <1 2 3 4>;")
916 self.assertEqual(type(pos), ast.PairPosStatement)
918 self.assertEqual(glyphstr([pos.glyphs1]), "[T V]")
919 self.assertEqual(pos.valuerecord1.asFea(), "<1 2 3 4>")
920 self.assertEqual(glyphstr([pos.glyphs2]), "[a b c]")
922 self.assertEqual(pos.asFea(), "pos [T V] [a b c] <1 2 3 4>;")
929 self.assertEqual(type(pos), ast.PairPosStatement)
931 self.assertEqual(glyphstr([pos.glyphs1]), "[T V]")
932 self.assertEqual(pos.valuerecord1.asFea(), "<1 2 3 4>")
933 self.assertEqual(glyphstr([pos.glyphs2]), "[a b c]")
941 self.assertEqual(type(pos), ast.PairPosStatement)
943 self.assertEqual(glyphstr([pos.glyphs1]), "[T V]")
944 self.assertEqual(pos.valuerecord1.asFea(), "<1 2 3 4>")
945 self.assertEqual(glyphstr([pos.glyphs2]), "[a b c]")
953 self.assertEqual(type(pos), ast.CursivePosStatement)
954 self.assertEqual(pos.glyphclass.glyphSet(), ("A",))
955 self.assertEqual((pos.entryAnchor.x, pos.entryAnchor.y), (12, -2))
956 self.assertEqual((pos.exitAnchor.x, pos.exitAnchor.y), (2, 3))
978 self.assertEqual(type(pos), ast.MarkBasePosStatement)
979 self.assertEqual(pos.base.glyphSet(), ("a", "e", "o", "u"))
981 self.assertEqual((a1.x, a1.y, m1.name), (250, 450, "TOP_MARKS"))
982 self.assertEqual((a2.x, a2.y, m2.name), (210, -10, "BOTTOM_MARKS"))
1020 self.assertEqual(type(pos), ast.MarkLigPosStatement)
1021 self.assertEqual(pos.ligatures.glyphSet(), ("a_f_f_i", "o_f_f_i"))
1023 self.assertEqual((a11.x, a11.y, m11.name), (50, 600, "TOP_MARKS"))
1024 self.assertEqual((a12.x, a12.y, m12.name), (50, -10, "BOTTOM_MARKS"))
1025 self.assertEqual((a2.x, a2.y, m2.name), (30, 800, "TOP_MARKS"))
1026 self.assertEqual((a4.x, a4.y, m4.name), (30, -10, "BOTTOM_MARKS"))
1056 self.assertEqual(type(pos), ast.MarkMarkPosStatement)
1057 self.assertEqual(pos.baseMarks.glyphSet(), ("hamza",))
1059 self.assertEqual((a1.x, a1.y, m1.name), (221, 301, "MARK_CLASS_1"))
1088 self.assertEqual(type(pos), ast.ChainContextPosStatement)
1089 self.assertEqual(glyphstr(pos.prefix), "[A a] [B b]")
1090 self.assertEqual(glyphstr(pos.glyphs), "I [N n] P")
1091 self.assertEqual(glyphstr(pos.suffix), "[Y y] [Z z]")
1092 self.assertEqual(pos.lookups, [[lookup1], [lookup2], None])
1108 self.assertEqual(mc.markClass.name, "MARKS")
1109 self.assertEqual(mc.glyphSet(), ("acute", "grave"))
1110 self.assertEqual((mc.anchor.x, mc.anchor.y), (350, 3))
1117 self.assertEqual(name.nameID, 9)
1118 self.assertEqual(name.platformID, 3)
1119 self.assertEqual(name.platEncID, 1)
1120 self.assertEqual(name.langID, 0x0409)
1121 self.assertEqual(name.string, "Müller-Lancé")
1122 self.assertEqual(name.asFea(), r'nameid 9 "M\00fcller-Lanc\00e9";')
1127 self.assertEqual(name.string, r"Back\slash")
1128 self.assertEqual(name.asFea(), r'nameid 9 "Back\005cslash";')
1134 self.assertEqual(name.string, 'Quotation "Mark"')
1135 self.assertEqual(name.asFea(), r'nameid 9 "Quotation \0022Mark\0022";')
1140 self.assertEqual(name.string, r"Carrot ��")
1141 self.assertEqual(name.asFea(), r'nameid 9 "Carrot \d83e\dd55";')
1148 self.assertEqual(name.nameID, 9)
1149 self.assertEqual(name.platformID, 1)
1150 self.assertEqual(name.platEncID, 0)
1151 self.assertEqual(name.langID, 0)
1152 self.assertEqual(name.string, "Joachim Müller-Lancé")
1153 self.assertEqual(name.asFea(),
1160 self.assertEqual(name.nameID, 9)
1161 self.assertEqual(name.platformID, 1)
1162 self.assertEqual(name.platEncID, 0)
1163 self.assertEqual(name.langID, 18)
1164 self.assertEqual(name.string, "Jovica Veljović")
1165 self.assertEqual(name.asFea(), r'nameid 9 1 0 18 "Jovica Veljovi\e6";')
1176 self.assertEqual(name.nameID, 9)
1177 self.assertEqual(name.platformID, 3)
1178 self.assertEqual(name.platEncID, 1)
1179 self.assertEqual(name.langID, 0x0409)
1185 self.assertEqual(name.nameID, 9)
1186 self.assertEqual(name.platformID, 3)
1187 self.assertEqual(name.platEncID, 10)
1188 self.assertEqual(name.langID, 0o2011)
1194 self.assertEqual(cv.character, 0x5DDE)
1200 self.assertEqual(cv.character, 0o56736)
1205 self.assertEqual(type(rsub), ast.ReverseChainSingleSubstStatement)
1206 self.assertEqual(glyphstr(rsub.old_prefix), "a [B b]")
1207 self.assertEqual(rsub.glyphs[0].glyphSet(), ("c",))
1208 self.assertEqual(rsub.replacements[0].glyphSet(), ("C",))
1209 self.assertEqual(glyphstr(rsub.old_suffix), "d [E e]")
1214 self.assertEqual(type(rsub), ast.ReverseChainSingleSubstStatement)
1215 self.assertEqual(glyphstr(rsub.old_prefix),
1217 self.assertEqual(rsub.glyphs[0].glyphSet(), ("cid00004",))
1218 self.assertEqual(rsub.replacements[0].glyphSet(), ("cid00006",))
1219 self.assertEqual(glyphstr(rsub.old_suffix), "cid00005")
1227 self.assertEqual(type(rsub), ast.ReverseChainSingleSubstStatement)
1228 self.assertEqual(glyphstr(rsub.old_prefix), "A B")
1229 self.assertEqual(glyphstr(rsub.old_suffix), "C [D d]")
1230 self.assertEqual(mapping(rsub), {
1241 self.assertEqual(type(rsub), ast.ReverseChainSingleSubstStatement)
1242 self.assertEqual(glyphstr(rsub.old_prefix), "BACK TRACK")
1243 self.assertEqual(glyphstr(rsub.old_suffix), "LOOK AHEAD")
1244 self.assertEqual(mapping(rsub), {
1274 self.assertEqual(type(s), ast.ScriptStatement)
1275 self.assertEqual(s.script, "cyrl")
1288 self.assertEqual(da.tag, 'opsz')
1289 self.assertEqual(da.axisOrder, 0)
1290 self.assertEqual(da.names[0].string, 'Optical Size')
1299 self.assertEqual(avr.locations[0].tag, 'opsz')
1300 self.assertEqual(avr.locations[0].values[0], 8)
1301 self.assertEqual(avr.names[0].string, 'Caption')
1310 self.assertEqual(avr.locations[0].tag, 'opsz')
1311 self.assertEqual(avr.locations[0].values, [8, 6, 10])
1312 self.assertEqual(avr.names[0].string, 'Caption')
1342 self.assertEqual(nameRecord.names[0].string, 'Roman')
1343 self.assertEqual(nameRecord.names[1].string, 'ローマン')
1351 self.assertEqual(nameRecord.string, 'Roman')
1357 self.assertEqual(glyphstr(sub.prefix), "")
1358 self.assertEqual(mapping(sub), {"a": "a.sc"})
1359 self.assertEqual(glyphstr(sub.suffix), "")
1365 self.assertEqual(mapping(sub), {"d": "d.alt"})
1366 self.assertEqual(glyphstr(sub.prefix), "[A a]")
1367 self.assertEqual(glyphstr(sub.suffix), "C")
1373 self.assertEqual(glyphstr(sub.prefix), "")
1374 self.assertEqual(mapping(sub), {"cid12345": "cid78987"})
1375 self.assertEqual(glyphstr(sub.suffix), "")
1384 self.assertEqual(mapping(sub), {
1388 self.assertEqual(glyphstr(sub.prefix), "")
1389 self.assertEqual(glyphstr(sub.suffix), "")
1398 self.assertEqual(mapping(sub), {
1402 self.assertEqual(glyphstr(sub.prefix), "PRE FIX")
1403 self.assertEqual(glyphstr(sub.suffix), "SUF FIX")
1412 self.assertEqual(mapping(sub), {
1418 self.assertEqual(glyphstr(sub.prefix), "")
1419 self.assertEqual(glyphstr(sub.suffix), "")
1428 self.assertEqual(mapping(sub), {
1434 self.assertEqual(glyphstr(sub.prefix), "")
1435 self.assertEqual(glyphstr(sub.suffix), "X Y [Z z]")
1454 self.assertEqual(sub.glyph, "f_f_i")
1455 self.assertEqual(sub.replacement, ("f", "f", "i"))
1461 self.assertEqual(sub.glyph, "f_f_i")
1462 self.assertEqual(sub.replacement, ("f", "f", "i"))
1468 self.assertEqual(sub.glyph, "f_f_i")
1469 self.assertEqual(sub.replacement, ("f", "f", "i"))
1470 self.assertEqual(sub.asFea(), "sub f_f_i' by f f i;")
1527 self.assertEqual(statements[1].glyph, "f")
1528 self.assertEqual(statements[1].replacement, ["f"])
1529 self.assertEqual(statements[3].glyph, "a")
1530 self.assertEqual(statements[3].replacement, ["a"])
1531 self.assertEqual(statements[4].glyph, "a.sc")
1532 self.assertEqual(statements[4].replacement, ["a"])
1533 self.assertEqual(statements[5].glyph, "a")
1534 self.assertEqual(statements[5].replacement, ["b"])
1535 self.assertEqual(statements[6].glyph, "a.sc")
1536 self.assertEqual(statements[6].replacement, ["b.sc"])
1544 self.assertEqual(glyphstr(sub.prefix), "")
1545 self.assertEqual(glyphstr([sub.glyph]), "a")
1546 self.assertEqual(glyphstr(sub.suffix), "")
1547 self.assertEqual(glyphstr([sub.replacement]), "[a.1 a.2 a.3]")
1555 self.assertEqual(glyphstr(sub.prefix), "A B")
1556 self.assertEqual(glyphstr([sub.glyph]), "a")
1557 self.assertEqual(glyphstr(sub.suffix), "[Y y] Z")
1558 self.assertEqual(glyphstr([sub.replacement]), "[a.1 a.2 a.3]")
1566 self.assertEqual(glyphstr(sub.prefix), "")
1567 self.assertEqual(glyphstr([sub.glyph]), "cid00007")
1568 self.assertEqual(glyphstr(sub.suffix), "")
1569 self.assertEqual(glyphstr([sub.replacement]), "[cid00111 cid00222]")
1578 self.assertEqual(glyphstr(sub.prefix), "")
1579 self.assertEqual(glyphstr([sub.glyph]), "ampersand")
1580 self.assertEqual(glyphstr(sub.suffix), "")
1581 self.assertEqual(glyphstr([sub.replacement]),
1588 self.assertEqual(glyphstr(sub.glyphs), "f f i")
1589 self.assertEqual(sub.replacement, "f_f_i")
1590 self.assertEqual(glyphstr(sub.prefix), "")
1591 self.assertEqual(glyphstr(sub.suffix), "")
1597 self.assertEqual(glyphstr(sub.glyphs), "f i")
1598 self.assertEqual(sub.replacement, "f_i")
1599 self.assertEqual(glyphstr(sub.prefix), "A B")
1600 self.assertEqual(glyphstr(sub.suffix), "Z")
1605 self.assertEqual(feature.statements[0].lookups, [[ligs], None, [sub]])
1606 self.assertEqual(feature.statements[1].lookups, [[ligs], None, [sub]])
1636 self.assertEqual(comment.text, "# Comment")
1649 self.assertEqual(value.xAdvance, 123)
1655 self.assertEqual(valuedef.asFea(), "valueRecordDef 123 foo;")
1656 self.assertEqual(value.asFea(), "123")
1665 self.assertEqual(value.yAdvance, 123)
1670 self.assertEqual(valuedef.asFea(), "valueRecordDef 123 foo;")
1671 self.assertEqual(value.asFea(), "123")
1679 self.assertEqual(value.xAdvance, 0)
1685 self.assertEqual(valuedef.asFea(), "valueRecordDef 0 foo;")
1686 self.assertEqual(value.asFea(), "0")
1695 self.assertEqual(value.yAdvance, 0)
1700 self.assertEqual(valuedef.asFea(), "valueRecordDef 0 foo;")
1701 self.assertEqual(value.asFea(), "0")
1716 self.assertEqual(value.xPlacement, 1)
1717 self.assertEqual(value.yPlacement, 2)
1718 self.assertEqual(value.xAdvance, 3)
1719 self.assertEqual(value.yAdvance, 4)
1724 self.assertEqual(valuedef.asFea(), "valueRecordDef <1 2 3 4> foo;")
1725 self.assertEqual(value.asFea(), "<1 2 3 4>")
1731 self.assertEqual(value.xPlacement, 0)
1732 self.assertEqual(value.yPlacement, 0)
1733 self.assertEqual(value.xAdvance, 0)
1734 self.assertEqual(value.yAdvance, 0)
1739 self.assertEqual(valuedef.asFea(), "valueRecordDef <0 0 0 0> foo;")
1740 self.assertEqual(value.asFea(), "<0 0 0 0>")
1754 self.assertEqual(value.xPlacement, 1)
1755 self.assertEqual(value.yPlacement, 2)
1756 self.assertEqual(value.xAdvance, 3)
1757 self.assertEqual(value.yAdvance, 4)
1758 self.assertEqual(value.xPlaDevice, ((8, 88),))
1759 self.assertEqual(value.yPlaDevice, ((11, 111), (12, 112)))
1761 self.assertEqual(value.yAdvDevice, ((33, -113), (44, -114), (55, 115)))
1762 self.assertEqual(value.asFea(),
1770 self.assertEqual(value.asFea(), "<NULL>")
1776 self.assertEqual(value.xPlacement, 1)
1777 self.assertEqual(value.yPlacement, 2)
1778 self.assertEqual(value.xAdvance, 3)
1779 self.assertEqual(value.yAdvance, 4)
1792 self.assertEqual(foo.value.xAdvance, 789)
1793 self.assertEqual(liga.statements[0].value.xAdvance, 789)
1794 self.assertEqual(smcp.statements[0].value.xAdvance, 789)
1805 self.assertEqual(langsys.script, "latn")
1806 self.assertEqual(langsys.language, "DEU ")
1808 self.assertEqual(langsys.script, "DFLT")
1809 self.assertEqual(langsys.language, "DEU ")
1835 self.assertEqual(doc.statements[0].statements, [])
1858 self.assertEqual(symtab.resolve("foo"), 23)
1860 self.assertEqual(symtab.resolve("foo"), 23)
1862 self.assertEqual(symtab.resolve("foo"), 42)
1864 self.assertEqual(symtab.resolve("foo"), 23)
1867 self.assertEqual(SymbolTable().resolve("abc"), None)