Slightly improving error message on test--> failure

This commit is contained in:
Jay McCarthy 2010-07-16 15:51:08 -06:00
parent fc29e7e856
commit ec487fac4c

View File

@ -2127,9 +2127,11 @@
(for-each (for-each
(λ (v2) (fprintf (current-error-port) "expected: ~v\n" v2)) (λ (v2) (fprintf (current-error-port) "expected: ~v\n" v2))
expected) expected)
(for-each (if (empty? got)
(λ (v1) (fprintf (current-error-port) " actual: ~v\n" v1)) (fprintf (current-error-port) "got nothing\n")
got)))]))) (for-each
(λ (v1) (fprintf (current-error-port) " actual: ~v\n" v1))
got))))])))
(define-syntax (test-predicate stx) (define-syntax (test-predicate stx)
(syntax-case stx () (syntax-case stx ()