A simple scheme unittest DSL

1 year ago by Phil Dawes

One of the first things I wrote when I was in the ‘nesting’* phase of learning gambit scheme was a unittest DSL. Part of this was that I wanted an excuse to use r5rs syntax-rules macros, but the real motivation was that I’d been seduced by the idea of using tests for documentation ala Nat Pryce’s ‘Protest’. Here’s what I came up with: (example): (define-tests bus-tests (drive-to ... Continue reading

Source: www.phildawes.net