List Info

Thread: Tests *in* code?




Tests *in* code?
user name
2006-11-09 00:08:29
One thing that one could do with Scheme macros is actually
write unit
tests *inside* the source code.  It'd be trivial to have a
test
harness which would take a module name, extract the tests
from the
module's source, and run them.  And the tests would act as
an
additional sort of documentation: runnable examples, built
right into
the source code.

What do you think?

_______________________________________________
Minor mailing list
Minorred-bean.com
http:/
/www.red-bean.com/mailman/listinfo/minor
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )