[pygccxml-commit] SF.net SVN: pygccxml:[1404] pygccxml_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2008-08-21 18:02:40
|
Revision: 1404
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1404&view=rev
Author: roman_yakovenko
Date: 2008-08-21 18:02:50 +0000 (Thu, 21 Aug 2008)
Log Message:
-----------
add new test cases
Modified Paths:
--------------
pygccxml_dev/unittests/data/vector_traits.hpp
pygccxml_dev/unittests/vector_traits_tester.py
Modified: pygccxml_dev/unittests/data/vector_traits.hpp
===================================================================
--- pygccxml_dev/unittests/data/vector_traits.hpp 2008-08-21 12:38:47 UTC (rev 1403)
+++ pygccxml_dev/unittests/data/vector_traits.hpp 2008-08-21 18:02:50 UTC (rev 1404)
@@ -1,9 +1,9 @@
-// Copyright 2004 Roman Yakovenko.
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
+// Copyright 2004 Roman Yakovenko.
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
-#include <string>
+#include <string>
#include <vector>
@@ -65,4 +65,6 @@
};
}
-}
\ No newline at end of file
+}
+
+void do_nothing( std::vector< std::wstring >& );
Modified: pygccxml_dev/unittests/vector_traits_tester.py
===================================================================
--- pygccxml_dev/unittests/vector_traits_tester.py 2008-08-21 12:38:47 UTC (rev 1403)
+++ pygccxml_dev/unittests/vector_traits_tester.py 2008-08-21 18:02:50 UTC (rev 1404)
@@ -59,6 +59,11 @@
cnt = 'std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >@::std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >,std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >'
traits = declarations.find_container_traits( cnt )
self.failUnless( declarations.vector_traits is traits)
+
+ def test_element_type( self ):
+ do_nothing = self.global_ns.free_fun( 'do_nothing' )
+ v = declarations.remove_reference( declarations.remove_declarated( do_nothing.arguments[0].type ))
+ declarations.vector_traits.element_type( v )
def create_suite():
suite = unittest.TestSuite()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|