2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 17:32:55 +00:00
Files
python/example/test_getting_started1.py
nobody 9261e2a3d9 This commit was manufactured by cvs2svn to create branch
'boost_python_friend_fixes'.

[SVN r10123]
2001-05-18 15:12:31 +00:00

18 lines
416 B
Python

r'''>>> import getting_started1
>>> print getting_started1.greet()
hello, world
>>> number = 11
>>> print number, '*', number, '=', getting_started1.square(number)
11 * 11 = 121
'''
def run(args = None):
if args is not None:
import sys
sys.argv = args
import doctest, test_getting_started1
doctest.testmod(test_getting_started1)
if __name__ == '__main__':
run()