Home | History | Annotate | Download | only in feaLib
      1 from __future__ import print_function, division, absolute_import
      2 from __future__ import unicode_literals
      3 from fontTools.feaLib import ast
      4 import unittest
      5 
      6 
      7 class AstTest(unittest.TestCase):
      8     def test_glyphname_escape(self):
      9         statement = ast.GlyphClass()
     10         for name in ("BASE", "NULL", "foo", "a"):
     11             statement.append(ast.GlyphName(name))
     12         self.assertEqual(statement.asFea(), r"[\BASE \NULL foo a]")
     13 
     14 
     15 if __name__ == "__main__":
     16     import sys
     17     sys.exit(unittest.main())
     18