unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Adding the doctests module to guile-lib or guile?
@ 2024-04-26 16:27 Dr. Arne Babenhauserheide
  2024-10-17  6:56 ` Dr. Arne Babenhauserheide
  0 siblings, 1 reply; 2+ messages in thread
From: Dr. Arne Babenhauserheide @ 2024-04-26 16:27 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Adding the doctests module to guile-lib or guile?
  2024-04-26 16:27 Adding the doctests module to guile-lib or guile? Dr. Arne Babenhauserheide
@ 2024-10-17  6:56 ` Dr. Arne Babenhauserheide
  0 siblings, 0 replies; 2+ messages in thread
From: Dr. Arne Babenhauserheide @ 2024-10-17  6:56 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]

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" <arne_bab@web.de> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 1125 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-17  6:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-26 16:27 Adding the doctests module to guile-lib or guile? Dr. Arne Babenhauserheide
2024-10-17  6:56 ` Dr. Arne Babenhauserheide

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).