| 1 |
#!r6rs |
| 2 |
;; Copyright 2010 Derick Eddington. My MIT-style license is in the file named |
| 3 |
;; LICENSE from the original collection this file is distributed with. |
| 4 |
|
| 5 |
(library (srfi :78 lightweight-testing) |
| 6 |
(export |
| 7 |
check |
| 8 |
check-ec |
| 9 |
check-report |
| 10 |
check-set-mode! |
| 11 |
check-reset! |
| 12 |
check-passed?) |
| 13 |
(import |
| 14 |
(rnrs) |
| 15 |
(srfi :78 lightweight-testing compat) |
| 16 |
(srfi :39 parameters) |
| 17 |
(srfi :42 eager-comprehensions) |
| 18 |
(srfi :23 error tricks) |
| 19 |
(for (srfi private vanish) expand) |
| 20 |
(srfi private include)) |
| 21 |
|
| 22 |
(define-syntax check:mode |
| 23 |
(identifier-syntax |
| 24 |
(_ (check:mode-param)) |
| 25 |
((set! _ expr) (check:mode-param expr)))) |
| 26 |
|
| 27 |
(define check:mode-param (make-parameter #F)) |
| 28 |
|
| 29 |
(let-syntax ((define (vanish-define define (check:write check:mode)))) |
| 30 |
(SRFI-23-error->R6RS "(library (srfi :78 lightweight-testing))" |
| 31 |
(include/resolve ("srfi" "%3a78") "check.scm"))) |
| 32 |
) |