Update of /cvsroot/pygccxml/source/pyplusplus/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19454/pyplusplus/unittests
Modified Files:
test_all.py
Added Files:
index_operator_tester.py
Log Message:
operator[] is now supported
--- NEW FILE: index_operator_tester.py ---
# 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)
import os
import sys
import unittest
import fundamental_tester_base
from pygccxml import declarations
from pyplusplus import code_creators
class tester_t(fundamental_tester_base.fundamental_tester_base_t):
EXTENSION_NAME = 'index_operator'
def __init__( self, *args ):
fundamental_tester_base.fundamental_tester_base_t.__init__(
self
, tester_t.EXTENSION_NAME
, *args )
def run_tests(self, module):
cont = module.container()
self.failUnless( cont[3] == 1 )
self.failUnless( cont[0] == 0 )
def create_suite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(tester_t))
return suite
def run_suite():
unittest.TextTestRunner(verbosity=2).run( create_suite() )
if __name__ == "__main__":
run_suite()
Index: test_all.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/unittests/test_all.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** test_all.py 2 Mar 2006 13:30:37 -0000 1.31
--- test_all.py 5 Mar 2006 05:51:30 -0000 1.32
***************
*** 41,44 ****
--- 41,45 ----
import regression3_tester
import optional_tester
+ import index_operator_tester
def create_suite(times):
***************
*** 78,81 ****
--- 79,83 ----
, class_order4_tester
, optional_tester
+ , index_operator_tester
]
|