5 ms·
This is why a test block is a block. Writing inline tests for stateful functions in Racket was a bit painful because it is so heavily expression-oriented. We wa
by skrishnamurthi 13y ago
This is why a test block is a block. Writing inline tests for stateful functions in Racket was a bit painful because it is so heavily expression-oriented. We want to make this feel more natural.
(Another virtue of test blocks: you can write little local helper functions. There's an example of this on the Pyret home page.)