[pygccxml-commit] SF.net SVN: pygccxml: [518] pyplusplus_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <mb...@us...> - 2006-09-04 08:16:45
|
Revision: 518
http://svn.sourceforge.net/pygccxml/?rev=518&view=rev
Author: mbaas
Date: 2006-09-04 01:16:39 -0700 (Mon, 04 Sep 2006)
Log Message:
-----------
Update the func transformer test so that func transformers are actually used. :) But as of now the test won't pass anyway because the func transformers feature is still work in progress.
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-04 07:03:18 UTC (rev 517)
+++ pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp 2006-09-04 08:16:39 UTC (rev 518)
@@ -15,7 +15,9 @@
, m_width( w )
{}
- void get_size( unsigned int& h, unsigned int& w ){
+ // Made the method 'virtual' for now because func transformers
+ // are currently only taken into account on virtual functions.
+ virtual void get_size( unsigned int& h, unsigned int& w ){
h = m_height;
w = m_width;
}
Modified: pyplusplus_dev/unittests/function_transformations_tester.py
===================================================================
--- pyplusplus_dev/unittests/function_transformations_tester.py 2006-09-04 07:03:18 UTC (rev 517)
+++ pyplusplus_dev/unittests/function_transformations_tester.py 2006-09-04 08:16:39 UTC (rev 518)
@@ -7,6 +7,7 @@
import sys
import unittest
import fundamental_tester_base
+from pyplusplus.function_transformers.arg_policies import *
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
EXTENSION_NAME = 'function_transformations'
@@ -19,7 +20,7 @@
def customize( self, mb ):
image = mb.class_( "image_t" )
- pass
+ image.member_function( "get_size" ).function_transformers.extend([Output(1), Output(2)])
def run_tests(self, module):
img = module.image_t( 2, 6)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|