[pygccxml-commit] SF.net SVN: pygccxml: [593] pyplusplus_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2006-09-26 18:49:52
|
Revision: 593
http://svn.sourceforge.net/pygccxml/?rev=593&view=rev
Author: roman_yakovenko
Date: 2006-09-26 11:49:45 -0700 (Tue, 26 Sep 2006)
Log Message:
-----------
adding new unit test for FT - class with private
destructor
Modified Paths:
--------------
pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp
pyplusplus_dev/unittests/function_transformations_tester.py
Modified: pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp 2006-09-26 18:40:19 UTC (rev 592)
+++ pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp 2006-09-26 18:49:45 UTC (rev 593)
@@ -92,7 +92,13 @@
bool member(int& v) { v=17; return true; }
};
-
+/*
+struct ft_private_destructor_t{
+ static void get_value( int& x ){ x = 21; }
+private:
+ ~ft_private_destructor_t(){}
+};
+*/
}
#endif//__function_transformations_to_be_exported_hpp__
Modified: pyplusplus_dev/unittests/function_transformations_tester.py
===================================================================
--- pyplusplus_dev/unittests/function_transformations_tester.py 2006-09-26 18:40:19 UTC (rev 592)
+++ pyplusplus_dev/unittests/function_transformations_tester.py 2006-09-26 18:49:45 UTC (rev 593)
@@ -32,7 +32,10 @@
cls = mb.class_("no_virtual_members_t")
cls.member_function("member").function_transformers.append(output_t(1))
-
+
+ #cls = mb.class_("ft_private_destructor_t")
+ #cls.member_function("get_value").function_transformers.append(output_t(1))
+
mb.decls(lambda decl: decl.name[0]=="_").exclude()
def run_tests(self, module):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|