List Info

Thread: Tests *in* code?




Tests *in* code?
user name
2006-11-09 07:23:40
On 11/8/06, Jim Blandy <jimbred-bean.com> wrote:
> 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?

Sure -- but I think this is done with conditional
compilation in lots
of languages, and doesn't require a very sophisticated macro
system.

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

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