%3a78/lightweight-testing/compat.ypsilon.sls
raw| 1 | #!r6rs |
| 2 | ;; Copyright 2009 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 compat) |
| 6 | (export |
| 7 | check:write) |
| 8 | (import |
| 9 | (rnrs) |
| 10 | (only (core) pretty-print)) |
| 11 | |
| 12 | (define check:write |
| 13 | (case-lambda |
| 14 | ((x) (check:write x (current-output-port))) |
| 15 | ((x p) |
| 16 | (pretty-print x p) |
| 17 | (newline p)))) |
| 18 | ) |