On Mon, Nov 9, 2020 at 1:46 AM Amirouche Boubekki <xxxxxx@gmail.com> wrote:
Le dim. 8 nov. 2020 à 15:09, Alex Shinn <xxxxxx@gmail.com> a écrit :

[...]

> You seem to want object-oriented tests rather than functional tests,
> but the whole point of lambda the ultimate is that we don't need objects:
>
>   (lambda () (test (foo) (bar)))

Yes.

> The idiom in Chibi is every library has its own test library,
> which exports a single procedure named `run-tests' to
> actually runs the tests.  This can be replayed, e.g. after
> making a hot fix.

But that makes it difficult to run a single test.

In the Chibi case there are utilities for automatically skipping tests by their names,
but that's outside the scope of this SRFI.

If you want a single first-class test, just name it:

  (define (test1) (test (foo) (bar))

--
Alex