[pygccxml-commit] source/pygccxml/unittests namespace_matcher_tester.py,1.1,1.2 variable_matcher_tes
Brought to you by:
mbaas,
roman_yakovenko
From: Roman <rom...@us...> - 2006-03-29 04:14:58
|
Update of /cvsroot/pygccxml/source/pygccxml/unittests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25176/pygccxml/unittests Modified Files: namespace_matcher_tester.py variable_matcher_tester.py Log Message: adding next functionality: 1. __str__ method for all matchers 2. updating unittests 3. improving performance of matcher.__call__ method Index: variable_matcher_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/variable_matcher_tester.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** variable_matcher_tester.py 2 Mar 2006 05:55:41 -0000 1.2 --- variable_matcher_tester.py 29 Mar 2006 04:14:50 -0000 1.3 *************** *** 27,31 **** criteria = declarations.variable_matcher_t( name='x', type='unsigned int' ) x = declarations.matcher.get_single( criteria, self.declarations ) ! criteria = declarations.variable_matcher_t( name='::bit_fields::fields_t::x' --- 27,33 ---- criteria = declarations.variable_matcher_t( name='x', type='unsigned int' ) x = declarations.matcher.get_single( criteria, self.declarations ) ! ! self.failUnless( str(criteria) == '(decl type==variable_t) and (name==x) and (value type==unsigned int)' ) ! criteria = declarations.variable_matcher_t( name='::bit_fields::fields_t::x' Index: namespace_matcher_tester.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/namespace_matcher_tester.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** namespace_matcher_tester.py 28 Feb 2006 07:11:09 -0000 1.1 --- namespace_matcher_tester.py 29 Mar 2006 04:14:50 -0000 1.2 *************** *** 26,30 **** criteria = declarations.namespace_matcher_t( name='bit_fields' ) x = declarations.matcher.get_single( criteria, self.declarations ) ! def create_suite(): suite = unittest.TestSuite() --- 26,31 ---- criteria = declarations.namespace_matcher_t( name='bit_fields' ) x = declarations.matcher.get_single( criteria, self.declarations ) ! self.failUnless( str(criteria) == '(decl type==namespace_t) and (name==bit_fields)' ) ! def create_suite(): suite = unittest.TestSuite() |