| From: Chris Wright (c.wright at southernhealth.org.au) Date: Tue Mar 29 18:46:48 EST 2005 |
|
what is the most sensible way to include tests in a module?
python uses an idiom where
if __name__ == '__main__':
do_the_tests()
is placed at the end of a module, and then the module can be called with
> python <module-name>
and do_the_tests() will be executed.
What's the most sensible way to do this in drscheme? I would expect the
test code to be executed when I "ran" the module in the IDE.
cheers and thanks
Chris Wright
| Posted on the users mailing list. |
|