[tools] Check C & C++ syntax.
This commit is contained in:
parent
167f0a4a1d
commit
e1adec2133
4 changed files with 23 additions and 4 deletions
|
|
@ -153,6 +153,9 @@ class ToolsTestCase(unittest.TestCase):
|
|||
("hello.h", tools.Status.normal),
|
||||
("hello.cpp", tools.Status.normal)])
|
||||
|
||||
def test_c_syntax(self):
|
||||
self._test_tool(tools.c_syntax, [("hello.c", tools.Status.ok)])
|
||||
|
||||
def test_splint(self):
|
||||
self._test_tool(tools.splint, [("hello.c", tools.Status.ok),
|
||||
("hello.h", tools.Status.ok)])
|
||||
|
|
@ -194,6 +197,9 @@ class ToolsTestCase(unittest.TestCase):
|
|||
def test_html2text(self):
|
||||
self._test_tool(tools.html2text, [("hi.html", tools.Status.normal)])
|
||||
|
||||
def test_cpp_syntax(self):
|
||||
self._test_tool(tools.cpp_syntax, [("hello.cpp", tools.Status.ok)])
|
||||
|
||||
def test_bcpp(self):
|
||||
self._test_tool(tools.bcpp, [("hello.cpp", tools.Status.normal)])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue