1from __future__ import print_function, division, absolute_import
2from __future__ import unicode_literals
3from fontTools.feaLib import ast
4import unittest
5
6
7class 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
15if __name__ == "__main__":
16    import sys
17    sys.exit(unittest.main())
18