nlfiedler / bakeneko

Scheme R7RS interpreter in Go
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Tests written in Scheme using a Scheme test framework #44

Open nlfiedler opened 10 years ago

nlfiedler commented 10 years ago

See chibi-scheme: all of the tests are written in Scheme using a basic test framework which is itself written in Scheme. Hard for bootstrapping, but once the interpreter is sufficiently complete, this would be the ideal way to express the tests. The source code editor can properly match parentheses and syntax colorize the code, which is much better than editing the test code inside a quoted string.

nlfiedler commented 10 years ago

The chibi-scheme test code is borrowed from CHICKEN Scheme. Finalized SRFIs related to testing include SRFI-64 [1] and SRFI-78 [2], with the latter being very lightweight. Both require a richer implementation of R5RS in order to function.

[1] http://srfi.schemers.org/srfi-64/ [2] http://srfi.schemers.org/srfi-78/