Added tests for c++ tools.

This commit is contained in:
Andrew Hamilton 2016-02-09 21:44:12 +00:00
parent 60a99ee705
commit db660521fa
4 changed files with 32 additions and 1 deletions

View file

@ -0,0 +1,8 @@
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
}

View file

@ -0,0 +1,9 @@
#include <iostream>
using namespace std;
int main()
{
 cout << "Hello World" << endl;
}


View file

@ -0,0 +1,9 @@
#include <iostream>
using namespace std;
int main()
{
 cout << "Hello World" << endl;
}


View file

@ -123,7 +123,8 @@ class ToolsTestCase(unittest.TestCase):
self._sub_tests([ self._sub_tests([
(tools.uncrustify, "closure-util.java", tools.Status.problem), (tools.uncrustify, "closure-util.java", tools.Status.problem),
(tools.uncrustify, "hello.c", tools.Status.normal), (tools.uncrustify, "hello.c", tools.Status.normal),
(tools.uncrustify, "hello.h", tools.Status.normal)]) (tools.uncrustify, "hello.h", tools.Status.normal),
(tools.uncrustify, "hello.cpp", tools.Status.normal)])
def test_splint(self): def test_splint(self):
self._sub_tests([(tools.splint, "hello.c", tools.Status.ok), self._sub_tests([(tools.splint, "hello.c", tools.Status.ok),
@ -141,6 +142,10 @@ class ToolsTestCase(unittest.TestCase):
self._sub_tests([ self._sub_tests([
(tools.html2text, "hi.html", tools.Status.normal)]) (tools.html2text, "hi.html", tools.Status.normal)])
def test_bcpp(self):
self._sub_tests([
(tools.bcpp, "hello.cpp", tools.Status.normal)])
if __name__ == "__main__": if __name__ == "__main__":
golden.main() golden.main()