Last change
on this file since 45 was
29,
checked in by landauf, 17 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
627 bytes
|
Line | |
---|
1 | # Copyright Eric Niebler 2005. 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 stl_iterator_ext import * |
---|
6 | >>> x = list_int() |
---|
7 | >>> x.assign(iter([1,2,3,4,5])) |
---|
8 | >>> for y in x: |
---|
9 | ... print y |
---|
10 | 1 |
---|
11 | 2 |
---|
12 | 3 |
---|
13 | 4 |
---|
14 | 5 |
---|
15 | ''' |
---|
16 | def run(args = None): |
---|
17 | import sys |
---|
18 | import doctest |
---|
19 | |
---|
20 | if args is not None: |
---|
21 | sys.argv = args |
---|
22 | return doctest.testmod(sys.modules.get(__name__)) |
---|
23 | |
---|
24 | if __name__ == '__main__': |
---|
25 | print "running..." |
---|
26 | import sys |
---|
27 | status = run()[0] |
---|
28 | if (status == 0): print "Done." |
---|
29 | sys.exit(status) |
---|
Note: See
TracBrowser
for help on using the repository browser.