Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/python/test/long.py @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 665 bytes
Line 
1# Copyright David Abrahams 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>>> from long_ext import *
6>>> new_long()
70L
8>>> longify(42)
942L
10>>> longify_string('300')
11300L
12>>> is_long(20L)
13'yes'
14>>> is_long('20')
150
16
17>>> x = Y(4294967295L)
18'''
19
20def run(args = None):
21    import sys
22    import doctest
23
24    if args is not None:
25        sys.argv = args
26    return doctest.testmod(sys.modules.get(__name__))
27   
28if __name__ == '__main__':
29    print "running..."
30    import sys
31    status = run()[0]
32    if (status == 0): print "Done."
33    sys.exit(status)
Note: See TracBrowser for help on using the repository browser.