[pygccxml-commit] SF.net SVN: pygccxml: [1353] pyplusplus_dev/unittests
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2008-06-25 19:19:34
|
Revision: 1353
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1353&view=rev
Author: roman_yakovenko
Date: 2008-06-25 12:19:38 -0700 (Wed, 25 Jun 2008)
Log Message:
-----------
fix tester
Modified Paths:
--------------
pyplusplus_dev/unittests/data/global_variables_to_be_exported.cpp
pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp
pyplusplus_dev/unittests/global_variables_tester.py
Modified: pyplusplus_dev/unittests/data/global_variables_to_be_exported.cpp
===================================================================
--- pyplusplus_dev/unittests/data/global_variables_to_be_exported.cpp 2008-06-25 17:52:00 UTC (rev 1352)
+++ pyplusplus_dev/unittests/data/global_variables_to_be_exported.cpp 2008-06-25 19:19:38 UTC (rev 1353)
@@ -20,3 +20,5 @@
}
}
+
+const char someSin[3] = "AB";
\ No newline at end of file
Modified: pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp
===================================================================
--- pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp 2008-06-25 17:52:00 UTC (rev 1352)
+++ pyplusplus_dev/unittests/data/global_variables_to_be_exported.hpp 2008-06-25 19:19:38 UTC (rev 1353)
@@ -22,6 +22,6 @@
}
-extern const char someSin[256];
+extern const char someSin[3];
#endif//__global_variables_to_be_exported_hpp__
Modified: pyplusplus_dev/unittests/global_variables_tester.py
===================================================================
--- pyplusplus_dev/unittests/global_variables_tester.py 2008-06-25 17:52:00 UTC (rev 1352)
+++ pyplusplus_dev/unittests/global_variables_tester.py 2008-06-25 19:19:38 UTC (rev 1353)
@@ -27,7 +27,10 @@
self.failUnless( 10 == len( module.garray ) )
for index in range( 10 ):
self.failUnless( -index == module.garray[index].value )
-
+ self.failUnless( 3 == len( module.someSin )
+ and module.someSin[0] == 'A'
+ and module.someSin[1] == 'B'
+ and module.someSin[2] == '\0' )
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
@@ -37,4 +40,4 @@
unittest.TextTestRunner(verbosity=2).run( create_suite() )
if __name__ == "__main__":
- run_suite()
\ No newline at end of file
+ run_suite()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|