Re: Adding the doctests module to guile-lib or guile?
"Dr. Arne Babenhauserheide" <[email protected]>
| Newsgroups | gmane.lisp.guile.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I now went ahead and created a repository for guile-doctest. It uses (ice-9 doctests) in the hope that it can get merged into guile in the not too distant future: https://hg.sr.ht/~arnebab/guile-doctests/browse Currently it still needs proper texinfo docs. Aside from that it’s complete, as far as I can tell. Best wishes, Arne "Dr. Arne Babenhauserheide" <[email protected]> writes: > Hi, > > did this question drown in other messages? Should this go > > - to guile-lib > - to guile > - elsewhere? > > My preference would be guile, because then it would be available for > everyone learning Guile Scheme and I could more easily use it in > tutorials > > Best wishes, > Arne. > > "Dr. Arne Babenhauserheide" <[email protected]> writes: > >> Hi, >> >> I’ve been using my doctests implementation for years now, and it works >> beautifully for me, so I would like to contribute it — either to >> guile-lib as (tests doctest) or to guile (maybe (ice-9 doctest)?). >> >> Working code is here: >> https://hg.sr.ht/~arnebab/wisp/browse/examples/doctests.scm?rev=tip >> >> >> Example usage: >> ;; https://hg.sr.ht/~arnebab/wisp/browse/examples/doctests-test.scm?rev=tip >> (define-module (examples doctests-test)) >> >> (import (examples doctests)) >> >> (define (foo) >> #((tests >> ('foo >> (test-equal "bar" (foo))))) >> "bar") >> >> (define %this-module (current-module)) >> (define (main args) >> " Testing doctests" >> #((tests ('mytest >> (test-assert #t) >> (test-assert #f)))) >> (doctests-testmod %this-module)) >> >> >> How should I go forward to contribute it (and should I)? >> >> >> Best wishes, >> Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de
signature.asc
(application/pgp-signature, 1.1 KB)
-----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmdCXusQHGFybmVfYmFi QHdlYi5kZQAKCRAT741FJAPD61eWD/9QZDQzrPk6R3xYKQCDIRxOgZIOBba5F+oP f/+HK9tL1bTA4/V8j7ux7IniH3ABZuvFK5o8rKKNHB7KpOhZX2DkiYRIHtIO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