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:
623 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 injected_ext import * |
---|
6 | >>> X(3,5).value() - (3+5) |
---|
7 | 0 |
---|
8 | >>> X(a=3,b=5,c=7).value() - (3*5*7) |
---|
9 | 0 |
---|
10 | >>> X().value() |
---|
11 | 1000 |
---|
12 | ''' |
---|
13 | |
---|
14 | def run(args = None): |
---|
15 | import sys |
---|
16 | import doctest |
---|
17 | |
---|
18 | if args is not None: |
---|
19 | sys.argv = args |
---|
20 | return doctest.testmod(sys.modules.get(__name__)) |
---|
21 | |
---|
22 | if __name__ == '__main__': |
---|
23 | print "running..." |
---|
24 | import sys |
---|
25 | status = run()[0] |
---|
26 | if (status == 0): print "Done." |
---|
27 | sys.exit(status) |
---|
28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.