[plt-scheme] slatex and including unit testable code

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed May 16 10:15:35 EDT 2007

On 5/16/07, Grant Rettke <grettke at acm.org> wrote:
> On 5/16/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> > Well, you probably wouldn't need to hack the parser to go that route.
> > You can use read-syntax to get a version of the file as a value that
> > has the source locations in it and then reconstruct things from there.
> > Not trivial, but at least you can rely on the manuals for help :)
>
> That sounds like an interesting solution. The idea of being able to
> unit test the code that will appear in a book or publication, at any
> time, sounds wonderful. At the very least you know that the code
> samples you are sharing with the world do something correctly.

Well, either route would let you keep your tests (which I agree is important).

There was also someone working on literate programming for PLT Scheme
not too long ago, but I don't know how far it got ...

Robby


Posted on the users mailing list.