Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/libs/python/test/pointer_vector.py @ 13

Last change on this file since 13 was 12, checked in by landauf, 17 years ago

added boost

File size: 626 bytes
Line 
1# Copyright Joel de Guzman 2004. Distributed under the Boost
2# Software License, Version 1.0. (See accompanying
3# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
4'''
5
6>>> import pointer_vector_ext
7>>> d = pointer_vector_ext.DoesSomething()
8>>> lst = d.returnList()
9>>> lst[0].f();
10'harru'
11
12'''
13
14
15def run(args = None):
16    import sys
17    import doctest
18
19    if args is not None:
20        sys.argv = args
21    return doctest.testmod(sys.modules.get(__name__))
22
23if __name__ == '__main__':
24    print 'running...'
25    import sys
26    status = run()[0]
27    if (status == 0): print "Done."
28    sys.exit(status)
29
30
31
Note: See TracBrowser for help on using the repository browser.