[pygccxml-commit] SF.net SVN: pygccxml:[1419] pygccxml_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2008-10-05 10:08:27
|
Revision: 1419 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1419&view=rev Author: roman_yakovenko Date: 2008-10-05 10:05:46 +0000 (Sun, 05 Oct 2008) Log Message: ----------- fix testers Modified Paths: -------------- pygccxml_dev/unittests/data/type_traits.hpp pygccxml_dev/unittests/find_container_traits_tester.py pygccxml_dev/unittests/type_traits_tester.py Modified: pygccxml_dev/unittests/data/type_traits.hpp =================================================================== --- pygccxml_dev/unittests/data/type_traits.hpp 2008-10-05 09:45:58 UTC (rev 1418) +++ pygccxml_dev/unittests/data/type_traits.hpp 2008-10-05 10:05:46 UTC (rev 1419) @@ -187,6 +187,10 @@ typedef detail::dd_t dd_t; typedef detail::f_t f_t; typedef detail::g_t g_t; + + typedef detail::const_container const_container_t; + typedef detail::const_item const_item_t; + } namespace no{ typedef std::string string_type; @@ -194,10 +198,7 @@ typedef std::vector< int > vector_of_int_type; typedef std::set< std::string > string_set_type; typedef std::multimap< std::string, std::string > s2s_multimap_type; - typedef detail::vertex vertex_type; - typedef detail::const_container const_container_t; - typedef detail::const_item const_item_t; - + typedef detail::vertex vertex_type; } } @@ -544,11 +545,13 @@ struct x{ x(){} }; +} + +namespace no{ + typedef details::const_item const_item; typedef details::const_container const_container; -} -namespace no{ class y{ private: y(){} Modified: pygccxml_dev/unittests/find_container_traits_tester.py =================================================================== --- pygccxml_dev/unittests/find_container_traits_tester.py 2008-10-05 09:45:58 UTC (rev 1418) +++ pygccxml_dev/unittests/find_container_traits_tester.py 2008-10-05 10:05:46 UTC (rev 1419) @@ -67,7 +67,7 @@ def test_multimap( self ): m = self.global_ns.class_( lambda decl: decl.name.startswith( 'multimap' ) ) traits = declarations.find_container_traits( m ) - self.failUness( m.partial_name == 'multimap< int, int >' ) + self.failUnless( m.partial_name == 'multimap< int, int >' ) def test_recursive_partial_name( self ): f1 = self.global_ns.free_fun( 'f1' ) Modified: pygccxml_dev/unittests/type_traits_tester.py =================================================================== --- pygccxml_dev/unittests/type_traits_tester.py 2008-10-05 09:45:58 UTC (rev 1418) +++ pygccxml_dev/unittests/type_traits_tester.py 2008-10-05 10:05:46 UTC (rev 1419) @@ -247,8 +247,8 @@ code = "struct const_item{ const int values[10]; };" global_ns = parser.parse_string( code , config )[0] ci = global_ns.class_( 'const_item' ) - self.failUnless( len( ci.declarations ) == 5 ) - #constructor, copy constructor, destructor, operator=, variable + self.failUnless( len( ci.declarations ) == 3 ) + #copy constructor, destructor, variable def create_suite(): suite = unittest.TestSuite() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |