@@ -0,0 +1,658 @@
+from unittest import TestCase%0A%0Afrom pyglsl_parser import Parser, ShaderType%0A%0Aclass TestParser(TestCase):%0A    def test_simple_error(self):%0A        text = 'x'%0A        parser = Parser(text, 'myfile')%0A        ast = parser.parse(ShaderType.Vertex)%0A        self.assertIs(ast, None)%0A        expected_err = 'myfile:1:2: error: premature end of file'%0A        self.assertEqual(parser.error(), expected_err)%0A%0A    def test_simple_main(self):%0A        text = 'void main() %7B%7D'%0A        parser = Parser(text, 'myfile')%0A        ast = parser.parse(ShaderType.Vertex)%0A        # TODO(nicholasbishop): add asserts, remove debug print%0A        print(list(ast.functions()))%0A        %0A

Add initial unit tests