Now the perl_syntax tool detects if perl files (.pl) are perl5 or perl6.

This commit is contained in:
Andrew Hamilton 2016-02-13 00:01:48 +00:00
parent d2fea070c4
commit cc95534bd7
5 changed files with 255 additions and 4 deletions

View file

@ -111,7 +111,8 @@ class ToolsTestCase(unittest.TestCase):
[("hi3.cpython-34.pyc", tools.Status.normal)])
def test_perl_syntax(self):
self._test_tool(tools.perl_syntax, [("perl.pl", tools.Status.ok)])
self._test_tool(tools.perl_syntax, [("perl.pl", tools.Status.ok),
("perl6.pl", tools.Status.problem)])
def test_perldoc(self):
self._test_tool(tools.perldoc,