Update of /cvsroot/pygccxml/source/pygccxml/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16961/pygccxml/unittests
Modified Files:
autoconfig.py decl_printer_tester.py
Log Message:
adding unit tester for __str__ functionality
Index: decl_printer_tester.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/decl_printer_tester.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** decl_printer_tester.py 6 Mar 2006 05:00:34 -0000 1.1
--- decl_printer_tester.py 22 Mar 2006 11:08:11 -0000 1.2
***************
*** 28,39 ****
, 'core_overloads_2.hpp'
]
-
- def test(self):
prj_reader = parser.project_reader_t( self.config )
! prj_decls = prj_reader.read_files( self.__files
, compilation_mode=parser.COMPILATION_MODE.FILE_BY_FILE )
writer = lambda decl: None
! declarations.print_declarations( prj_decls, writer=writer )
def create_suite():
suite = unittest.TestSuite()
--- 28,44 ----
, 'core_overloads_2.hpp'
]
prj_reader = parser.project_reader_t( self.config )
! self.decls = prj_reader.read_files( self.__files
, compilation_mode=parser.COMPILATION_MODE.FILE_BY_FILE )
+
+ def test_printer(self):
writer = lambda decl: None
! declarations.print_declarations( self.decls, writer=writer )
+ def test__str__(self):
+ decls = declarations.make_flatten(self.decls)
+ for decl in decls:
+ str(decl)
+
def create_suite():
suite = unittest.TestSuite()
Index: autoconfig.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/autoconfig.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** autoconfig.py 15 Mar 2006 09:27:06 -0000 1.12
--- autoconfig.py 22 Mar 2006 11:08:11 -0000 1.13
***************
*** 73,76 ****
--- 73,77 ----
, 'config'#parameter description
, 'gccxml'#parameter description
+ , 'pyplusplus'
] )
except ImportError:
|