[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Adding the doctests module to guile-lib or guile?
From: |
Dr. Arne Babenhauserheide |
Subject: |
Adding the doctests module to guile-lib or guile? |
Date: |
Fri, 26 Apr 2024 18:27:31 +0200 |
User-agent: |
mu4e 1.12.4; emacs 30.0.50 |
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
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Adding the doctests module to guile-lib or guile?,
Dr. Arne Babenhauserheide <=