Eduardo Cavazos <[email protected]> writes:

> Hello,
>
> Suppose I have this simple R6RS script:
>
> ----------------------------------------------------------------------
> (import (rnrs)
>         (srfi :64))
>
[...]
> It would be nice if it showed the actual failing test.

There's a later SRFI which already does that:

> (import (srfi :78 lightweight-testing))
> (check (= 1 1) => #t)

(= 1 1)
=>
#t
; correct
> (check (= 1 2) => #t)

(= 1 2)
=>
#f
; *** failed ***
; expected result: #t
> (check-report)

; *** checks *** : 1 correct, 1 failed. First failed example:

(= 1 2)
=>
#f
; *** failed ***
; expected result: #t
> 


Regards,

-- 
Göran Weinholt <[email protected]>
"Python is popular; we're not!  We have an advantage!" -- Abdulaziz Ghuloum

Attachment: pgpYPVkpNM5B8.pgp
Description: PGP signature

Reply via email to