Commits

gbrandl  committed 7014536

[svn] Begin a test case for the cmdline interface.

  • Participants
  • Parent commits 876f734
  • Branches trunk

Comments (0)

Files changed (5)

 -----------
 (released Nov XX, 2006)
 
+- Some improvements in the C(++) lexers handling comments and line
+  continuations.
 
 
 Version 0.5.1

File tests/run.py

     for testfile in files:
         globs = {}
         try:
+            __builtin__.testfile = testfile
             execfile(join(testdir, testfile), globs)
         except Exception, exc:
             raise

File tests/test_basic_api.py

 
 class LexersTest(unittest.TestCase):
 
+    def test_import_all(self):
+        # instantiate every lexer, to see if the token type defs are correct
+        for x in pygments.lexers.LEXERS.keys():
+            c = getattr(pygments.lexers, x)()
+
     def test_lexer_classes(self):
         a = self.assert_
         ae = self.assertEquals

File tests/test_clexer.py

     ~~~~~~~~~~~~~~~~~
 
     :copyright: 2006 by Armin Ronacher.
-    :license: GNU GPL, see LICENSE for more details.
+    :license: GNU LGPL, see LICENSE for more details.
 """
 
 import unittest

File tests/test_lexers.py

-import unittest
-
-import pygments.lexers
-
-class LexerTest(unittest.TestCase):
-
-    def testImportAll(self):
-        # instantiate every lexer, to see if the token type defs are correct
-        for x in pygments.lexers.LEXERS.keys():
-            c = getattr(pygments.lexers, x)()